HelTecAutomation / platform-asrmicro650x

ASR Microelectronics ASR650x: development platform for PlatformIO
https://registry.platformio.org/platforms/heltecautomation/asrmicro650x
24 stars 15 forks source link

lorawan.debug_level option NONE doesn't work #15

Closed SebDominguez closed 2 years ago

SebDominguez commented 2 years ago

Even with board_build.arduino.lorawan.debug_level = NONE into platformio.ini the LoRaWan debug output is still ON

https://github.com/HelTecAutomation/platform-asrmicro650x/blob/0f2048ca9bf3e57dc4a74c903ea2c8ad10563e22/builder/frameworks/arduino.py#L165

SebDominguez commented 2 years ago

Just find out that the LoRa libraries inside the Arduino Env Dev for PlatformIO didn't even use the #define FREQ_PRINTF nor #define DIO_PRINTF(format, ...) defined in debug.h

There are Serial.print() statements all over the place... What's the point of having a debugging header if you throw serials outputs everywhere?

ivankravets commented 2 years ago

I can't reproduce this issue. Please try pio run -v and check the verbose output:

_DEVEUI_AUTO=0 -DLoraWan_RGB=1 -DLoRaWAN_DEBUG_LEVEL=0

See https://github.com/HelTecAutomation/CubeCell-Arduino/blob/master/boards.txt#L98