From b3dcde33d6e6510fc98dfdaa7f1342a99d9acdad Mon Sep 17 00:00:00 2001 From: Liam JACK Date: Thu, 13 May 2021 18:15:09 +0200 Subject: [PATCH] Fix #1 - radio.read no longer returns a boolean, thanks @M-Kingston --- master/master.ino | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/master/master.ino b/master/master.ino index 188cc21..8a3701f 100644 --- a/master/master.ino +++ b/master/master.ino @@ -56,10 +56,7 @@ void loop() float temperature = 0; // Read the packet received into the temperature variable - if(!radio.read(&temperature, sizeof(float))) { - // The sensor did not receive the ACK packet - Serial.println("ACK not received by client."); - } + radio.read(&temperature, sizeof(float)); // Print the temperature Serial.println(temperature); @@ -68,4 +65,3 @@ void loop() delay(100); } } -