We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dedd359 commit 4eae50cCopy full SHA for 4eae50c
src/TheThingsNetwork.cpp
@@ -348,6 +348,7 @@ void TheThingsNetwork::clearReadBuffer()
348
size_t TheThingsNetwork::readLine(char *buffer, size_t size)
349
{
350
size_t read = 0;
351
+ //TODO: add protection against an infinite loop here
352
while (read == 0)
353
354
read = modemStream->readBytesUntil('\n', buffer, size);
@@ -434,6 +435,7 @@ void TheThingsNetwork::saveState()
434
435
sendCommand(MAC_TABLE, MAC_SAVE, false);
436
modemStream->write(SEND_MSG);
437
debugPrintLn();
438
+ waitForOk();
439
}
440
441
void TheThingsNetwork::onMessage(void (*cb)(const uint8_t *payload, size_t size, port_t port))
0 commit comments