mirror of https://github.com/arendst/Tasmota.git
Fix rule expressions using mems corrupts character pool
Fix rule expressions using mems corrupts character pool (#9301)
This commit is contained in:
parent
b6e6e76e95
commit
e030b9fece
|
@ -7,8 +7,12 @@ All notable changes to this project will be documented in this file.
|
||||||
### Added
|
### Added
|
||||||
- TLS in binary tasmota-zbbridge (#9620)
|
- TLS in binary tasmota-zbbridge (#9620)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- PlatformIO library structure redesigned for compilation speed by Jason2866
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Rule Break not working as expected when ONCE is enabled (#9245)
|
- Rule Break not working as expected when ONCE is enabled (#9245)
|
||||||
|
- Rule expressions using mems corrupts character pool (#9301)
|
||||||
|
|
||||||
## [9.0.0.2] - 20201025
|
## [9.0.0.2] - 20201025
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -97,6 +97,7 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota
|
||||||
- Rotary driver adjusted accordingly if Mi Desk Lamp module is selected (#9399)
|
- Rotary driver adjusted accordingly if Mi Desk Lamp module is selected (#9399)
|
||||||
- Tasmota Arduino Core v2.7.4.5 allowing webpassword over 47 characters (#9687)
|
- Tasmota Arduino Core v2.7.4.5 allowing webpassword over 47 characters (#9687)
|
||||||
- Webserver code optimizations (#9580, #9590)
|
- Webserver code optimizations (#9580, #9590)
|
||||||
|
- PlatformIO library structure redesigned for compilation speed by Jason2866
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Ledlink blink when no network connected regression from v8.3.1.4 (#9292)
|
- Ledlink blink when no network connected regression from v8.3.1.4 (#9292)
|
||||||
|
@ -113,6 +114,7 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota
|
||||||
- Zigbee battery percentage (#9607)
|
- Zigbee battery percentage (#9607)
|
||||||
- HassAnyKey anomaly (#9601)
|
- HassAnyKey anomaly (#9601)
|
||||||
- Rule Break not working as expected when ONCE is enabled (#9245)
|
- Rule Break not working as expected when ONCE is enabled (#9245)
|
||||||
|
- Rule expressions using mems corrupts character pool (#9301)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- Support for direct upgrade from Tasmota versions before v7.0
|
- Support for direct upgrade from Tasmota versions before v7.0
|
||||||
|
|
|
@ -2176,7 +2176,10 @@ void CmndMemory(void)
|
||||||
if (XdrvMailbox.data_len > 0) {
|
if (XdrvMailbox.data_len > 0) {
|
||||||
#ifdef USE_EXPRESSION
|
#ifdef USE_EXPRESSION
|
||||||
if (XdrvMailbox.data[0] == '=') { // Spaces already been skipped in data
|
if (XdrvMailbox.data[0] == '=') { // Spaces already been skipped in data
|
||||||
dtostrfd(evaluateExpression(XdrvMailbox.data + 1, XdrvMailbox.data_len - 1), Settings.flag2.calc_resolution, SettingsText(SET_MEM1 + XdrvMailbox.index -1));
|
char rules_mem[FLOATSZ];
|
||||||
|
dtostrfd(evaluateExpression(XdrvMailbox.data + 1, XdrvMailbox.data_len - 1), Settings.flag2.calc_resolution, rules_mem);
|
||||||
|
SettingsUpdateText(SET_MEM1 + XdrvMailbox.index -1, rules_mem);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
SettingsUpdateText(SET_MEM1 + XdrvMailbox.index -1, ('"' == XdrvMailbox.data[0]) ? "" : XdrvMailbox.data);
|
SettingsUpdateText(SET_MEM1 + XdrvMailbox.index -1, ('"' == XdrvMailbox.data[0]) ? "" : XdrvMailbox.data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue