mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-22 10:16:30 +00:00
Merge pull request #12518 from ascillato/patch-1
AP Mode: Allow buttons to work as in Normal Mode
This commit is contained in:
commit
4fe8f6bc16
@ -320,9 +320,9 @@ void ButtonHandler(void) {
|
|||||||
// Success
|
// Success
|
||||||
} else {
|
} else {
|
||||||
if (Button.press_counter[button_index] < 6) { // Single to Penta press
|
if (Button.press_counter[button_index] < 6) { // Single to Penta press
|
||||||
if (WifiState() > WIFI_RESTART) { // Wifimanager active
|
// if (WifiState() > WIFI_RESTART) { // Wifimanager active
|
||||||
TasmotaGlobal.restart_flag = 1;
|
// TasmotaGlobal.restart_flag = 1;
|
||||||
}
|
// }
|
||||||
if (!Settings->flag3.mqtt_buttons) { // SetOption73 - Detach buttons from relays and enable MQTT action state for multipress
|
if (!Settings->flag3.mqtt_buttons) { // SetOption73 - Detach buttons from relays and enable MQTT action state for multipress
|
||||||
if (Button.press_counter[button_index] == 1) { // By default first press always send a TOGGLE (2)
|
if (Button.press_counter[button_index] == 1) { // By default first press always send a TOGGLE (2)
|
||||||
ExecuteCommandPower(button_index + Button.press_counter[button_index], POWER_TOGGLE, SRC_BUTTON);
|
ExecuteCommandPower(button_index + Button.press_counter[button_index], POWER_TOGGLE, SRC_BUTTON);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user