|
@ -345,7 +345,7 @@ void _relayBoot() { |
|
|
case RELAY_BOOT_SAME: |
|
|
case RELAY_BOOT_SAME: |
|
|
status = ((mask & bit) == bit); |
|
|
status = ((mask & bit) == bit); |
|
|
break; |
|
|
break; |
|
|
case RELAY_BOOT_TOOGLE: |
|
|
|
|
|
|
|
|
case RELAY_BOOT_TOGGLE: |
|
|
status = ((mask & bit) != bit); |
|
|
status = ((mask & bit) != bit); |
|
|
mask ^= bit; |
|
|
mask ^= bit; |
|
|
trigger_save = true; |
|
|
trigger_save = true; |
|
@ -364,7 +364,7 @@ void _relayBoot() { |
|
|
bit <<= 1; |
|
|
bit <<= 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Save if there is any relay in the RELAY_BOOT_TOOGLE mode
|
|
|
|
|
|
|
|
|
// Save if there is any relay in the RELAY_BOOT_TOGGLE mode
|
|
|
if (trigger_save) { |
|
|
if (trigger_save) { |
|
|
EEPROM.write(EEPROM_RELAY_STATUS, mask); |
|
|
EEPROM.write(EEPROM_RELAY_STATUS, mask); |
|
|
EEPROM.commit(); |
|
|
EEPROM.commit(); |
|
|