ACKRequested() more explicit

This commit is contained in:
Felix Rusu 2020-01-21 12:56:23 -05:00
parent fbc65dedcf
commit e6adf4e6d5
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ bool RFM69::ACKReceived(uint16_t fromNodeID) {
// check whether an ACK was requested in the last received packet (non-broadcasted packet) // check whether an ACK was requested in the last received packet (non-broadcasted packet)
bool RFM69::ACKRequested() { bool RFM69::ACKRequested() {
return ACK_REQUESTED && (TARGETID != RF69_BROADCAST_ADDR); return ACK_REQUESTED && (TARGETID == _address);
} }
// should be called immediately after reception in case sender wants ACK // should be called immediately after reception in case sender wants ACK