Fix inverted noACK flag (#1321)

This commit is contained in:
Olivier
2019-07-24 13:43:36 +02:00
committed by GitHub
parent 67efa7a7a2
commit 3ae4fb657f
2 changed files with 2 additions and 2 deletions

View File

@@ -615,7 +615,7 @@ LOCAL bool RFM69_sendWithRetry(const uint8_t recipient, const void *buffer,
RFM69_DEBUG(PSTR("RFM69:SWR:SEND,TO=%" PRIu8 ",SEQ=%" PRIu16 ",RETRY=%" PRIu8 "\n"), recipient,
RFM69.txSequenceNumber,retry);
rfm69_controlFlags_t flags = 0u; // reset all flags
RFM69_setACKRequested(flags, noACK);
RFM69_setACKRequested(flags, !noACK);
RFM69_setACKRSSIReport(flags, RFM69.ATCenabled);
(void)RFM69_send(recipient, (uint8_t *)buffer, bufferSize, flags, !retry);
if (noACK) {

View File

@@ -546,7 +546,7 @@ LOCAL bool RFM95_sendWithRetry(const uint8_t recipient, const void *buffer,
RFM95.txSequenceNumber,
retry);
rfm95_controlFlags_t flags = 0u;
RFM95_setACKRequested(flags, noACK);
RFM95_setACKRequested(flags, !noACK);
// send packet
if (!RFM95_send(recipient, (uint8_t *)buffer, bufferSize, flags, !retry)) {
return false;