Skip to content

Commit c850955

Browse files
Merge pull request #211 from TheThingsNetwork/fix/208+209-mac-save-ok
Add a waitForOk() after mac save.
2 parents dedd359 + 3885b99 commit c850955

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TheThingsNetwork.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ void TheThingsNetwork::saveState()
434434
sendCommand(MAC_TABLE, MAC_SAVE, false);
435435
modemStream->write(SEND_MSG);
436436
debugPrintLn();
437+
waitForOk();
437438
}
438439

439440
void TheThingsNetwork::onMessage(void (*cb)(const uint8_t *payload, size_t size, port_t port))

0 commit comments

Comments
 (0)