Skip to content

Commit

Permalink
Fix future compile error ;-)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Apr 24, 2020
1 parent 56e7566 commit 5f75a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasmota/support_tasmota.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 5f75a4c

Please sign in to comment.