From b4c2eb0b78ec7924b1db981644e09c8da8e1aa12 Mon Sep 17 00:00:00 2001 From: Andrew Yong Date: Thu, 13 Aug 2026 14:31:39 +0800 Subject: [PATCH] refactor(led): generalize LED_LORA init from ThinkNode-M7 (#11437) Migrate LED_LORA init to match existing LED init patterns. Signed-off-by: Andrew Yong Co-authored-by: Jonathan Bennett --- src/main.cpp | 5 +++++ variants/esp32s3/ELECROW-ThinkNode-M7/variant.cpp | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3a4eb5f5f..6c13515af 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -393,6 +393,11 @@ void setup() digitalWrite(LED_NOTIFICATION, HIGH ^ LED_STATE_ON); #endif +#ifdef LED_LORA + pinMode(LED_LORA, OUTPUT); + digitalWrite(LED_LORA, HIGH ^ LED_STATE_ON); +#endif + #ifdef WIFI_LED pinMode(WIFI_LED, OUTPUT); digitalWrite(WIFI_LED, HIGH ^ WIFI_STATE_ON); diff --git a/variants/esp32s3/ELECROW-ThinkNode-M7/variant.cpp b/variants/esp32s3/ELECROW-ThinkNode-M7/variant.cpp index fbb9d37c5..17f767c0b 100644 --- a/variants/esp32s3/ELECROW-ThinkNode-M7/variant.cpp +++ b/variants/esp32s3/ELECROW-ThinkNode-M7/variant.cpp @@ -5,6 +5,4 @@ void initVariant() { pinMode(LED_PAIRING, OUTPUT); digitalWrite(LED_PAIRING, !LED_STATE_ON); // Turn off the LED to start - pinMode(LED_LORA, OUTPUT); - digitalWrite(LED_LORA, !LED_STATE_ON); // Turn off the LED to start }