mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 21:56:35 +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];
|
uint32_t values[2];
|
||||||
|
|
||||||
while ((str != nullptr) && (position <= 1)) {
|
while ((str != nullptr) && (position <= 1)) {
|
||||||
uint8_t value = strtol(str, nullptr, 10);
|
uint32_t value = strtoul(str, nullptr, 10);
|
||||||
values[position] = value;
|
values[position] = value;
|
||||||
str = strtok_r(nullptr, ", ", &p);
|
str = strtok_r(nullptr, ", ", &p);
|
||||||
position += 1;
|
position += 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user