kopia lustrzana https://github.com/jgromes/RadioLib
[SX127x] Fixed incorrect method names
rodzic
a7d9b9351d
commit
9d935fed1f
|
@ -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 {
|
||||
|
|
Ładowanie…
Reference in New Issue