mirror of https://github.com/arendst/Tasmota.git
Fix PUSH_IGNORE_INV once more
This commit is contained in:
parent
c63919d783
commit
32a51da43d
|
@ -407,12 +407,10 @@ void SwitchHandler(uint32_t mode) {
|
|||
}
|
||||
break;
|
||||
case PUSH_IGNORE:
|
||||
case PUSH_IGNORE_INV:
|
||||
Switch.last_state[i] = button; // Update switch state before publishing
|
||||
MqttPublishSensor();
|
||||
break;
|
||||
case PUSH_IGNORE_INV:
|
||||
MqttPublishSensor(); // Publishing before update
|
||||
break;
|
||||
}
|
||||
Switch.last_state[i] = button;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue