From e6daeda43e8838aafe6941321d97f0cf79609691 Mon Sep 17 00:00:00 2001 From: Theo Arends Date: Thu, 24 May 2018 16:36:12 +0200 Subject: [PATCH] Fix initial rule3 clearence --- sonoff/settings.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/settings.ino b/sonoff/settings.ino index 11b893910..170087767 100644 --- a/sonoff/settings.ino +++ b/sonoff/settings.ino @@ -907,7 +907,7 @@ void SettingsDelta() SettingsDefaultSet_5_13_1c(); } if (Settings.version < 0x050E0002) { - for (byte i = 1; i < MAX_RULE_SETS -1; i++) { + for (byte i = 1; i < MAX_RULE_SETS; i++) { Settings.rules[i][0] = '\0'; } Settings.rule_enabled = Settings.flag.rules_enabled;