xreef / EByte_LoRa_E220_Series_Library

Arduino LoRa EBYTE E220 LLCC68 device library complete and tested with Arduino, esp8266, esp32, STM32 and Raspberry Pi Pico (rp2040 boards)..
https://www.mischianti.org/category/my-libraries/lora-e220-llcc68-devices/
Other
88 stars 22 forks source link

The #define FREQUENCY_XXX parameter does not change the displayed value of the F #8

Closed WRoss7 closed 1 year ago

WRoss7 commented 1 year ago

I am not an expert, but I found that by editing the third line of the "statesNaming.h" file as follows, the frequency is correctly displayed:

if defined(FREQUENCY_433)

xreef commented 1 year ago

Hi WRoss7, Sorry, I lost this issue, you can follow this topic to change frequencies. https://www.mischianti.org/forums/topic/esp8266-wemos-d1-mini-and-e220-900t30d-frequencies-problem-and-info/ Bye Renzo

WRoss7 commented 1 year ago

Ciao Renzo, perhaps I did not explain myself well: I had inserted the line #define FREQUENCY_868 from the very beginning on my code, but the frequency displayed was always 433 MHz. Then I checked in the library files and found that by editing the third line in the "/includes/statesNaming.h" file as shown below, and recompiled the code, the displayed frequency appears correct: 868 MHz.

Before

ifdef FREQUENCY_433

After

if defined(FREQUENCY_433)

I understood it as an oversight, since the correction I made worked.

P.S. really nice gadget, thanks for your work