Skip to content

Commit 4837d5d

Browse files
committed
Always call MODEM.begin, but restart SARA module only when necessary
1 parent c85d79a commit 4837d5d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/NBFileUtils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ bool NBFileUtils::begin(const bool restart)
1212
{
1313
int status;
1414

15-
if (restart)
16-
MODEM.begin();
15+
MODEM.begin(restart);
1716

1817
if (_debug) {
1918
MODEM.debug();

0 commit comments

Comments
 (0)