ESP32_LoRaWAN icon indicating copy to clipboard operation
ESP32_LoRaWAN copied to clipboard

Missing case in enum

Open FStefanni opened this issue 3 years ago • 0 comments

Hi,

just to signal this warning:

ESP32_LoRaWAN/src/ESP32_LoRaWAN.cpp:422:12: error: enumeration value 'LORAMAC_REGION_LA915' not handled in switch [-Wswitch]

In my code I use -Werror=switch to transform the warning into an error, since missing enum cases in switches is usually a hidden bug. But then this lib does not compile... So it could be nice to handle the missing case in the switch.

If you like, I can also propose a pr.

Thank you, regards.

FStefanni avatar Nov 25 '21 13:11 FStefanni