Merge pull request #596 from tekka007/RFM69Fix

Fix payload length return
This commit is contained in:
Henrik Ekblad
2016-10-01 19:45:34 +02:00
committed by GitHub
+3 -1
View File
@@ -64,11 +64,13 @@ bool transportSanityCheck() {
uint8_t transportReceive(void* data) {
memcpy(data,(const void *)_radio.DATA, _radio.DATALEN);
// 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();
return _radio.DATALEN;
return dataLen;
}
void transportPowerDown() {