diff --git a/src/main.cpp b/src/main.cpp index 0b44c850..a9a54669 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -184,7 +184,7 @@ void setup() { // set low power mode to off #ifdef HAS_LOWPOWER_SWITCH - pinMode(HAS_LED, OUTPUT); + pinMode(HAS_LOWPOWER_SWITCH, OUTPUT); digitalWrite(HAS_LOWPOWER_SWITCH, HIGH); strcat_P(features, " LPWR"); #endif @@ -428,4 +428,4 @@ void loop() { } vTaskDelete(NULL); // shoud never be reached -} \ No newline at end of file +}