Fix max value in EnergyReset command

This commit is contained in:
pablozg 2019-09-20 22:46:34 +02:00
parent d7d91583fd
commit 4f17c93a83
1 changed files with 1 additions and 1 deletions

View File

@ -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;