[SX127x] Fixed incorrect method names
This commit is contained in:
parent
a7d9b9351d
commit
9d935fed1f
1 changed files with 2 additions and 2 deletions
|
@ -51,11 +51,11 @@ void setup() {
|
||||||
|
|
||||||
// set the function that will be called
|
// set the function that will be called
|
||||||
// when new packet is received
|
// when new packet is received
|
||||||
lora.onReceive(setFlag);
|
lora.setDio0Action(setFlag);
|
||||||
|
|
||||||
// start listening for LoRa packets
|
// start listening for LoRa packets
|
||||||
Serial.print(F("Starting to listen ... "));
|
Serial.print(F("Starting to listen ... "));
|
||||||
state = lora.listen();
|
state = lora.startReceive();
|
||||||
if (state == ERR_NONE) {
|
if (state == ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue