diff --git a/examples/radio/SX1262/SX126x_PingPong/SX126x_PingPong.ino b/examples/radio/SX1262/SX126x_PingPong/SX126x_PingPong.ino index 0c442753..2b4c9038 100644 --- a/examples/radio/SX1262/SX126x_PingPong/SX126x_PingPong.ino +++ b/examples/radio/SX1262/SX126x_PingPong/SX126x_PingPong.ino @@ -74,7 +74,7 @@ void setup() #else // start listening for LoRa packets on this node Serial.print(F("[SX1262] Starting to listen ... ")); - int state = radio.startReceive(); + state = radio.startReceive(); if (state == RADIOLIB_ERR_NONE) { Serial.println(F("success!")); } else { diff --git a/examples/radio/SX1262/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino b/examples/radio/SX1262/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino index e1bdb013..bdfcb44c 100644 --- a/examples/radio/SX1262/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino +++ b/examples/radio/SX1262/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino @@ -58,7 +58,7 @@ void setup() // start listening for LoRa packets Serial.print(F("[SX1262] Starting to listen ... ")); - int state = radio.startReceive(); + state = radio.startReceive(); if (state == RADIOLIB_ERR_NONE) { Serial.println(F("success!")); } else { diff --git a/examples/radio/SX1262/SX126x_Spectrum_Scan/SX126x_Spectrum_Scan.ino b/examples/radio/SX1262/SX126x_Spectrum_Scan/SX126x_Spectrum_Scan.ino index 0d9f03a7..5ade67c5 100644 --- a/examples/radio/SX1262/SX126x_Spectrum_Scan/SX126x_Spectrum_Scan.ino +++ b/examples/radio/SX1262/SX126x_Spectrum_Scan/SX126x_Spectrum_Scan.ino @@ -41,17 +41,6 @@ void setup() beginLvglHelper(); - // initialize SX1262 with default settings - Serial.print(F("[SX1262] Initializing ... ")); - int state = radio.begin(); - if (state == RADIOLIB_ERR_NONE) { - Serial.println(F("success!")); - } else { - Serial.print(F("failed, code ")); - Serial.println(state); - while (true); - } - // initialize SX1262 FSK modem at the initial frequency Serial.print(F("[SX1262] Initializing ... ")); int state = radio.beginFSK();