mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
add command system/fuse/mfg, board E32V2.2, check systemvolatage >2.6V
This commit is contained in:
@@ -524,7 +524,12 @@ bool Helpers::value2number(const char * value, int & value_i, const int min, con
|
||||
return false;
|
||||
}
|
||||
|
||||
value_i = atoi(value);
|
||||
if (strlen(value) > 2 && value[0] == '0' && value[1] == 'x') {
|
||||
value_i = hextoint(value);
|
||||
} else {
|
||||
value_i = atoi(value);
|
||||
}
|
||||
|
||||
if (value_i >= min && value_i <= max) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user