mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-26 07:47:15 +00:00
Minor refactor
This commit is contained in:
parent
b69a0add84
commit
c3a056a78f
@ -749,10 +749,10 @@ bool RuleSetProcess(uint8_t rule_set, String &event_saved)
|
||||
|
||||
bool RulesProcessEvent(char *json_event)
|
||||
{
|
||||
bool serviced = false;
|
||||
if (Rules.busy) { return false; }
|
||||
|
||||
if (!Rules.busy) {
|
||||
Rules.busy = true;
|
||||
bool serviced = false;
|
||||
|
||||
#ifdef USE_DEBUG_DRIVER
|
||||
ShowFreeMem(PSTR("RulesProcessEvent"));
|
||||
@ -779,7 +779,7 @@ bool RulesProcessEvent(char *json_event)
|
||||
}
|
||||
|
||||
Rules.busy = false;
|
||||
}
|
||||
|
||||
return serviced;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user