Skip to content

Commit

Permalink
update flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Praneethsvch committed Nov 11, 2020
1 parent 30e3d41 commit 32d1cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lorawan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ void onEvent (ev_t ev) {
Serial.println(F("Received ack"));
event_ev = String("Received ack");
writeToSDCard(event_ev);
UPDATE_CONFIG = false;
if (LMIC.dataLen) {
Serial.print(F("Received "));
Serial.print(LMIC.dataLen);
Expand All @@ -184,8 +185,7 @@ void onEvent (ev_t ev) {
Serial.println();
process_received_downlink();
}
TX_COMPLETED = true;
UPDATE_CONFIG = false;
TX_COMPLETED = true;
break;
case EV_LOST_TSYNC:
Serial.println(F("EV_LOST_TSYNC"));
Expand Down

0 comments on commit 32d1cbc

Please sign in to comment.