From c806b22e9d9a797e1c4e05edb4c272483aa9a79c Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 22 Dec 2019 15:36:20 +0100 Subject: [PATCH] Change max number of rule ``Mem``s to 16 Change max number of rule ``Mem``s from 5 to 16 (#4933) --- RELEASENOTES.md | 1 + tasmota/CHANGELOG.md | 1 + tasmota/tasmota.h | 2 +- tasmota/xdrv_10_rules.ino | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 7f07caaaa..b2bff6a7a 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -50,4 +50,5 @@ The following binary downloads have been compiled with ESP8266/Arduino library c - Change Settings text handling allowing variable length text within a total text pool of 699 characters - Change Smoother ``Fade`` using 100Hz instead of 20Hz animation (#7179) +- Change max number of rule ``Mem``s from 5 to 16 (#4933) - Add support for max 150 characters in command parameter strings (#3686, #4754) diff --git a/tasmota/CHANGELOG.md b/tasmota/CHANGELOG.md index 6930b6ab4..1c99c7223 100644 --- a/tasmota/CHANGELOG.md +++ b/tasmota/CHANGELOG.md @@ -4,6 +4,7 @@ - Change Settings text handling allowing variable length text within a total text pool of 699 characters - Change Smoother ``Fade`` using 100Hz instead of 20Hz animation (#7179) +- Change max number of rule ``Mem``s from 5 to 16 (#4933) - Add support for max 150 characters in most command parameter strings (#3686, #4754) ## Released diff --git a/tasmota/tasmota.h b/tasmota/tasmota.h index d68907185..bdbe5d177 100644 --- a/tasmota/tasmota.h +++ b/tasmota/tasmota.h @@ -73,7 +73,7 @@ const uint8_t MAX_PCF8574 = 8; // Max number of PCF8574 devices const uint8_t MAX_RULE_SETS = 3; // Max number of rule sets of size 512 characters const uint16_t MAX_RULE_SIZE = 512; // Max number of characters in rules -const uint8_t MAX_RULE_MEMS = 5; // Max number of saved vars +const uint8_t MAX_RULE_MEMS = 16; // Max number of saved vars const uint8_t MAX_HUE_DEVICES = 15; // Max number of Philips Hue device per emulation const char MQTT_TOKEN_PREFIX[] PROGMEM = "%prefix%"; // To be substituted by mqtt_prefix[x] diff --git a/tasmota/xdrv_10_rules.ino b/tasmota/xdrv_10_rules.ino index 6e1636518..72276f94b 100644 --- a/tasmota/xdrv_10_rules.ino +++ b/tasmota/xdrv_10_rules.ino @@ -174,8 +174,8 @@ char rules_vars[MAX_RULE_VARS][33] = {{ 0 }}; #if (MAX_RULE_VARS>16) #error MAX_RULE_VARS is bigger than 16 #endif -#if (MAX_RULE_MEMS>5) -#error MAX_RULE_MEMS is bigger than 5 +#if (MAX_RULE_MEMS>16) +#error MAX_RULE_MEMS is bigger than 16 #endif /*******************************************************************************************/