diff --git a/examples/SX126x/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino b/examples/SX126x/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino index 3be3d64b..84434f93 100644 --- a/examples/SX126x/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino +++ b/examples/SX126x/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino @@ -110,6 +110,9 @@ void loop() { // reset flag receivedFlag = false; + // put module to standby while reading data + lora.standby(); + // you can read received data as an Arduino String String str; int state = lora.readData(str); @@ -149,6 +152,9 @@ void loop() { } + // put module back to listen mode + lora.startReceive(); + // we're ready to receive more packets, // enable interrupt service routine enableInterrupt = true;