Update to radio.ACKRequested()

Use radio.ACKRequested() to avoid unwanted ACKs on broadcasts
This commit is contained in:
Felix Rusu 2014-08-12 22:38:58 -04:00
parent ccbd7ff7d0
commit 898922be10
4 changed files with 4 additions and 4 deletions

View File

@ -187,7 +187,7 @@ void loop()
//first send any ACK to request
DEBUG(" [RX_RSSI:");DEBUG(radio.readRSSI());DEBUG("]");
if (radio.ACK_REQUESTED)
if (radio.ACKRequested())
{
radio.sendACK();
DEBUG(" - ACK sent.");

View File

@ -98,7 +98,7 @@ void loop() {
Serial.print((char)radio.DATA[i]);
Serial.print(" [RSSI:");Serial.print(radio.RSSI);Serial.print("]");
if (radio.ACK_REQUESTED)
if (radio.ACKRequested())
{
byte theNodeID = radio.SENDERID;
radio.sendACK();

View File

@ -105,7 +105,7 @@ void loop() {
Serial.print(theData.temp);
}
if (radio.ACK_REQUESTED)
if (radio.ACKRequested())
{
byte theNodeID = radio.SENDERID;
radio.sendACK();

View File

@ -96,7 +96,7 @@ void loop() {
Serial.print((char)radio.DATA[i]);
Serial.print(" [RX_RSSI:");Serial.print(radio.readRSSI());Serial.print("]");
if (radio.ACK_REQUESTED)
if (radio.ACKRequested())
{
radio.sendACK();
Serial.print(" - ACK sent");