Fixed bug resulting in ACK problems
Even thouh auto ack was enabled we still called RF24::writeAckPayload(pipe,&pipe, 1 ); after reading a message. This probably caused radio to misbehave.
This commit is contained in:
@@ -267,7 +267,6 @@ boolean MySensor::process() {
|
||||
|
||||
uint8_t len = RF24::getDynamicPayloadSize();
|
||||
RF24::read(&msg, len);
|
||||
RF24::writeAckPayload(pipe,&pipe, 1 );
|
||||
|
||||
// Add string termination, good if we later would want to print it.
|
||||
msg.data[mGetLength(msg)] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user