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:
Henrik Ekblad
2014-10-29 18:00:34 +01:00
parent 9329626e8b
commit abe3956f5e
-1
View File
@@ -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';