mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
restore USE_SCRIPT_STATUS
This commit is contained in:
parent
fbb9df987e
commit
ac52259dc8
@ -642,10 +642,6 @@ void CmndStatus(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_SCRIPT_STATUS
|
|
||||||
if (bitRead(Settings.rule_enabled, 0)) { Run_Scripter(">U", 2, TasmotaGlobal.mqtt_data); }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ResponseClear();
|
ResponseClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8410,7 +8410,15 @@ bool Xdrv10(uint8_t function)
|
|||||||
break;
|
break;
|
||||||
case FUNC_RULES_PROCESS:
|
case FUNC_RULES_PROCESS:
|
||||||
if (bitRead(Settings.rule_enabled, 0)) {
|
if (bitRead(Settings.rule_enabled, 0)) {
|
||||||
|
#ifdef USE_SCRIPT_STATUS
|
||||||
|
if (!strncmp_P(TasmotaGlobal.mqtt_data, PSTR("{\"Status"), 8)) {
|
||||||
|
Run_Scripter(">U", 2, TasmotaGlobal.mqtt_data);
|
||||||
|
} else {
|
||||||
|
Run_Scripter(">E", 2, TasmotaGlobal.mqtt_data);
|
||||||
|
}
|
||||||
|
#else
|
||||||
Run_Scripter(">E", 2, TasmotaGlobal.mqtt_data);
|
Run_Scripter(">E", 2, TasmotaGlobal.mqtt_data);
|
||||||
|
#endif
|
||||||
result = glob_script_mem.event_handeled;
|
result = glob_script_mem.event_handeled;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user