[SX126x] Fixed incorrect example (#50)

This commit is contained in:
jgromes 2019-10-02 18:54:55 +02:00
parent 4fc2539a55
commit 5d4680709f

View file

@ -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;