Skip to content

Commit

Permalink
Fix #91: remove redundant call to UpdateFCntDown()
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Apr 2, 2019
1 parent 1040a38 commit 5c9c0ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib/arduino_lorawan_begin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ void Arduino_LoRaWAN::StandardEventProcessor(
uint32_t ev
)
{
// update our idea of the downlink counter.
this->UpdateFCntDown(LMIC.seqnoDn);

switch(ev)
Expand Down Expand Up @@ -281,11 +282,6 @@ void Arduino_LoRaWAN::NetRxComplete(void)
);
}
}

// Try to save the Rx sequence number.
// For efficiency, client should look for changes
// since last save.
this->UpdateFCntDown(LMIC.seqnoDn);
}

/****************************************************************************\
Expand Down

0 comments on commit 5c9c0ee

Please sign in to comment.