mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
text change
This commit is contained in:
@@ -501,7 +501,7 @@ void EMSdevice::add_device_value(uint8_t tag, // to b
|
|||||||
uint32_t max // max allowed value
|
uint32_t max // max allowed value
|
||||||
) {
|
) {
|
||||||
// initialize the device value depending on it's type
|
// initialize the device value depending on it's type
|
||||||
// ignoring DeviceValueType::CMD and DeviceValueType::TIME
|
// ignoring DeviceValueType::CMD
|
||||||
|
|
||||||
if (type == DeviceValueType::STRING) {
|
if (type == DeviceValueType::STRING) {
|
||||||
*(char *)(value_p) = {'\0'}; // this is important for string functions like strlen() to work later
|
*(char *)(value_p) = {'\0'}; // this is important for string functions like strlen() to work later
|
||||||
|
|||||||
Reference in New Issue
Block a user