From 54489577a9c3ca70943bec0c6da6f21445722dd4 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sun, 9 Oct 2016 13:22:20 +0200 Subject: [PATCH] Fix RFM69 ACK (#597) --- core/MyTransportRFM69.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/MyTransportRFM69.cpp b/core/MyTransportRFM69.cpp index b3b22de..6ed7283 100644 --- a/core/MyTransportRFM69.cpp +++ b/core/MyTransportRFM69.cpp @@ -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; }