Skip to content

Commit

Permalink
Fix #1 - radio.read no longer returns a boolean, thanks @M-Kingston
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjack committed May 13, 2021
1 parent 996a072 commit b3dcde3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions master/master.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -68,4 +65,3 @@ void loop()
delay(100);
}
}

0 comments on commit b3dcde3

Please sign in to comment.