mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 05:36:39 +00:00
Fix max value in EnergyReset command
This commit is contained in:
parent
d7d91583fd
commit
4f17c93a83
@ -523,7 +523,7 @@ void CmndEnergyReset(void)
|
||||
uint32_t values[2];
|
||||
|
||||
while ((str != nullptr) && (position <= 1)) {
|
||||
uint8_t value = strtol(str, nullptr, 10);
|
||||
uint32_t value = strtoul(str, nullptr, 10);
|
||||
values[position] = value;
|
||||
str = strtok_r(nullptr, ", ", &p);
|
||||
position += 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user