diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index d10e91d98..d8f33d9a7 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -339,7 +339,7 @@ void SetPowerOnState(void) void SetLedPowerIdx(uint32_t led, uint32_t state) { if ((99 == pin[GPIO_LEDLNK]) && (0 == led)) { // Legacy - LED1 is link led only if LED2 is present - if (pin[GPIO_LED2] < 99) { + if (pin[GPIO_LED1 +1] < 99) { led = 1; } }