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;
|
break;
|
||||||
case PUSH_IGNORE:
|
case PUSH_IGNORE:
|
||||||
|
case PUSH_IGNORE_INV:
|
||||||
Switch.last_state[i] = button; // Update switch state before publishing
|
Switch.last_state[i] = button; // Update switch state before publishing
|
||||||
MqttPublishSensor();
|
MqttPublishSensor();
|
||||||
break;
|
break;
|
||||||
case PUSH_IGNORE_INV:
|
|
||||||
MqttPublishSensor(); // Publishing before update
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
Switch.last_state[i] = button;
|
Switch.last_state[i] = button;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue