Fix RFM69 ACK (#597)
This commit is contained in:
committed by
Embedded Innovation
parent
fe3199ef6b
commit
54489577a9
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user