Merge pull request #2769 from ascillato/patch-2

Fix 'vars' on Rules
This commit is contained in:
Theo Arends 2018-05-19 09:53:08 +02:00 committed by GitHub
commit 85fcdcc4b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -88,6 +88,8 @@ uint32_t rules_triggers = 0;
uint8_t rules_trigger_count = 0;
uint8_t rules_teleperiod = 0;
char vars[RULES_MAX_VARS][10] = { 0 };
/*******************************************************************************************/
long TimeDifference(unsigned long prev, unsigned long next)
@ -243,7 +245,6 @@ bool RulesRuleMatch(String &event, String &rule)
bool RulesProcess()
{
bool serviced = false;
char vars[RULES_MAX_VARS][10] = { 0 };
char stemp[10];
delay(0); // Prohibit possible loop software watchdog