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 // save payload length
const uint8_t dataLen = _radio.DATALEN; const uint8_t dataLen = _radio.DATALEN;
// Send ack back if this message wasn't a broadcast // Send ack back if this message wasn't a broadcast
if (_radio.TARGETID != RF69_BROADCAST_ADDR) if(_radio.ACKRequested()) {
_radio.ACKRequested(); _radio.sendACK();
_radio.sendACK(); }
return dataLen; return dataLen;
} }