Skip to content

Commit 2354655

Browse files
committed
Add MODEM.noDebug() API
1 parent 975977e commit 2354655

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Modem.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ void ModemClass::debug()
101101
_debug = true;
102102
}
103103

104+
void ModemClass::noDebug()
105+
{
106+
_debug = false;
107+
}
108+
104109
int ModemClass::autosense(int timeout)
105110
{
106111
for (unsigned long start = millis(); (millis() - start) < timeout;) {

src/Modem.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class ModemClass {
3838
void end();
3939

4040
void debug();
41+
void noDebug();
4142

4243
int autosense(int timeout = 10000);
4344

0 commit comments

Comments
 (0)