Update to radio.ACKRequested()
Use radio.ACKRequested() to avoid unwanted ACKs on broadcasts
This commit is contained in:
parent
ccbd7ff7d0
commit
898922be10
|
|
@ -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.");
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ void loop() {
|
|||
Serial.print(theData.temp);
|
||||
}
|
||||
|
||||
if (radio.ACK_REQUESTED)
|
||||
if (radio.ACKRequested())
|
||||
{
|
||||
byte theNodeID = radio.SENDERID;
|
||||
radio.sendACK();
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue