Fix RFM69 ACK (#597)

This commit is contained in:
Olivier
2016-10-09 13:22:20 +02:00
committed by Embedded Innovation
parent fe3199ef6b
commit 54489577a9
+3 -3
View File
@@ -67,9 +67,9 @@ uint8_t transportReceive(void* data) {
// save payload length
const uint8_t dataLen = _radio.DATALEN;
// Send ack back if this message wasn't a broadcast
if (_radio.TARGETID != RF69_BROADCAST_ADDR)
_radio.ACKRequested();
_radio.sendACK();
if(_radio.ACKRequested()) {
_radio.sendACK();
}
return dataLen;
}