factor for charge duration

This commit is contained in:
MichaelDvP
2021-09-20 08:49:57 +02:00
parent 11590061a3
commit 5686094151
4 changed files with 62 additions and 32 deletions

View File

@@ -350,7 +350,7 @@ uint32_t Helpers::hextoint(const char * hex) {
// quick char to long
uint16_t Helpers::atoint(const char * value) {
unsigned int x = 0;
while (*value != '\0') {
while (*value >= '0' && *value <= '9') {
x = (x * 10) + (*value - '0');
++value;
}