Optimized string-to-number functions (#21484)

This commit is contained in:
Ramiro Polla
2021-03-31 04:20:33 +02:00
committed by GitHub
parent df297b6ca3
commit 20d2061f22
4 changed files with 153 additions and 26 deletions

View File

@ -1799,7 +1799,7 @@ void get_wifi_commands() {
if (IsStopped()) {
char* gpos = strchr(command, 'G');
if (gpos) {
switch (strtol(gpos + 1, nullptr, 10)) {
switch (parse_int32(gpos + 1)) {
case 0 ... 1:
#if ENABLED(ARC_SUPPORT)
case 2 ... 3: