diff --git a/examples/RF69_Receive_Address/RF69_Receive_Address.ino b/examples/RF69_Receive_Address/RF69_Receive_Address.ino index 374c0ccb..c0d0dca4 100644 --- a/examples/RF69_Receive_Address/RF69_Receive_Address.ino +++ b/examples/RF69_Receive_Address/RF69_Receive_Address.ino @@ -38,7 +38,7 @@ void setup() { // NOTE: calling this method will autmatically enable // address filtering (node address only) Serial.print(F("[RF69] Setting node address ... ")); - state == rf.setNodeAddress(0x02); + state = rf.setNodeAddress(0x02); if (state == ERR_NONE) { Serial.println(F("success!")); } else { @@ -51,7 +51,7 @@ void setup() { // NOTE: calling this method will autmatically enable // address filtering (node or broadcast address) Serial.print(F("[RF69] Setting broadcast address ... ")); - state == rf.setBroadcastAddress(0xFF); + state = rf.setBroadcastAddress(0xFF); if (state == ERR_NONE) { Serial.println(F("success!")); } else { @@ -67,11 +67,11 @@ void setup() { Serial.print(F("[RF69] Disabling address filtering ... ")); state == rf.disableAddressFiltering(); if(state == ERR_NONE) { - Serial.println(F("success!")); + Serial.println(F("success!")); } else { - Serial.print(F("failed, code ")); - Serial.println(state); - while(true); + Serial.print(F("failed, code ")); + Serial.println(state); + while(true); } */ } diff --git a/examples/RF69_Transmit_Address/RF69_Transmit_Address.ino b/examples/RF69_Transmit_Address/RF69_Transmit_Address.ino index 91f4a4d5..407f0c70 100644 --- a/examples/RF69_Transmit_Address/RF69_Transmit_Address.ino +++ b/examples/RF69_Transmit_Address/RF69_Transmit_Address.ino @@ -38,7 +38,7 @@ void setup() { // NOTE: calling this method will autmatically enable // address filtering (node address only) Serial.print(F("[RF69] Setting node address ... ")); - state == rf.setNodeAddress(0x01); + state = rf.setNodeAddress(0x01); if (state == ERR_NONE) { Serial.println(F("success!")); } else { @@ -51,7 +51,7 @@ void setup() { // NOTE: calling this method will autmatically enable // address filtering (node or broadcast address) Serial.print(F("[RF69] Setting broadcast address ... ")); - state == rf.setBroadcastAddress(0xFF); + state = rf.setBroadcastAddress(0xFF); if (state == ERR_NONE) { Serial.println(F("success!")); } else { @@ -65,13 +65,13 @@ void setup() { // node and broadcast address /* Serial.print(F("[RF69] Disabling address filtering ... ")); - state == rf.disableAddressFiltering(); + state = rf.disableAddressFiltering(); if(state == ERR_NONE) { - Serial.println(F("success!")); + Serial.println(F("success!")); } else { - Serial.print(F("failed, code ")); - Serial.println(state); - while(true); + Serial.print(F("failed, code ")); + Serial.println(state); + while(true); } */ }