Skip to content

Commit

Permalink
Fix #92: get correct tx complete status
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Apr 2, 2019
1 parent 05b0420 commit 9a9f441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/arduino_lorawan_begin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ void Arduino_LoRaWAN::StandardEventProcessor(
this->NetTxComplete();

// notify client that TX is complete; claim success unless
// LMIC.txrxFlags & TXRX_NACK
this->completeTx(! (LMIC.txrxFlags & TXRX_NACK));
// it's confirmed and we didn't get an ACK.
this->completeTx(! LMIC.pendTxConf || (LMIC.txrxFlags & TXRX_ACK) != 0);
break;

case EV_LOST_TSYNC:
Expand Down

0 comments on commit 9a9f441

Please sign in to comment.