diff options
-rw-r--r-- | LoRaHandler/LoRaHandler.cpp | 4 | ||||
-rw-r--r-- | LoRaHandler/LoRaHandler.h | 1 | ||||
-rw-r--r-- | main.cpp | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/LoRaHandler/LoRaHandler.cpp b/LoRaHandler/LoRaHandler.cpp index 94f02a8..b4de8b3 100644 --- a/LoRaHandler/LoRaHandler.cpp +++ b/LoRaHandler/LoRaHandler.cpp @@ -158,3 +158,7 @@ void LoRaHandler::blinker() { _activity_led = !_activity_led; } +void LoRaHandler::resetActivityLed() { + _activity_led = red; +} + diff --git a/LoRaHandler/LoRaHandler.h b/LoRaHandler/LoRaHandler.h index 8a4816a..375c277 100644 --- a/LoRaHandler/LoRaHandler.h +++ b/LoRaHandler/LoRaHandler.h @@ -41,6 +41,7 @@ class LoRaHandler { uint32_t getJoinAttempts(); void resetJoinAttempts(); void blinker(); + void resetActivityLed(); osThreadId _main; Thread _thread; @@ -132,6 +132,7 @@ void mainMenu() { while (true) { // reset session between modes dot->resetNetworkSession(); + lora->resetActivityLed(); LayoutScrollSelect menu(lcd, items, menu_strings[0], menu_strings[1]); menu.display(); |