diff --git a/examples/SX127x_ReceiveInterrupt/SX127x_ReceiveInterrupt.ino b/examples/SX127x_ReceiveInterrupt/SX127x_ReceiveInterrupt.ino index 85622a4e..6285e7d4 100644 --- a/examples/SX127x_ReceiveInterrupt/SX127x_ReceiveInterrupt.ino +++ b/examples/SX127x_ReceiveInterrupt/SX127x_ReceiveInterrupt.ino @@ -51,11 +51,11 @@ void setup() { // set the function that will be called // when new packet is received - lora.onReceive(setFlag); + lora.setDio0Action(setFlag); // start listening for LoRa packets Serial.print(F("Starting to listen ... ")); - state = lora.listen(); + state = lora.startReceive(); if (state == ERR_NONE) { Serial.println(F("success!")); } else {