Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Oct 29, 2023
1 parent 9004225 commit eedbf6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,17 @@ void loop()

// print RSSI (Received Signal Strength Indicator)
Serial.print(F("[LoRaWAN] RSSI:\t\t"));
Serial.print(radio.getRSSI());
Serial.print(watch.getRSSI());
Serial.println(F(" dBm"));

// print SNR (Signal-to-Noise Ratio)
Serial.print(F("[LoRaWAN] SNR:\t\t"));
Serial.print(radio.getSNR());
Serial.print(watch.getSNR());
Serial.println(F(" dB"));

// print frequency error
Serial.print(F("[LoRaWAN] Frequency error:\t"));
Serial.print(radio.getFrequencyError());
Serial.print(watch.getFrequencyError());
Serial.println(F(" Hz"));

} else if (state == RADIOLIB_ERR_RX_TIMEOUT) {
Expand Down
7 changes: 6 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@

; src_dir = examples/radio/SX126x_Transmit
; src_dir = examples/radio/SX126x_Transmit_Interrupt
; src_dir = examples/radio/LoRaWAN/LoRaWAN_End_Device_ABP
; src_dir = examples/radio/LoRaWAN/LoRaWAN_End_Device




; ! Demo
src_dir = examples/demo/factory
Expand Down Expand Up @@ -163,7 +168,7 @@ build_flags =
lib_deps =
earlephilhower/ESP8266Audio @ ^1.9.7
crankyoldgit/IRremoteESP8266 @ ^2.8.4
jgromes/RadioLib @ ^6.0.0
jgromes/RadioLib @ ^6.2.0
bodmer/TFT_eSPI @ ^2.5.30
lvgl/lvgl @ ^8.3.7
kosme/arduinoFFT @ ^1.6
Expand Down

0 comments on commit eedbf6e

Please sign in to comment.