We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce52535 commit 2abb7edCopy full SHA for 2abb7ed
src/communication/Commander.cpp
@@ -69,7 +69,7 @@ void Commander::run(char* user_input){
69
}
70
break;
71
case CMD_VERBOSE:
72
- if(user_input[1] != eol) verbose = (VerboseMode)atoi(&user_input[1]);
+ if(!isSentinel(user_input[1])) verbose = (VerboseMode)atoi(&user_input[1]);
73
printVerbose(F("Verb:"));
74
switch (verbose){
75
case VerboseMode::nothing:
@@ -82,7 +82,7 @@ void Commander::run(char* user_input){
82
83
84
case CMD_DECIMAL:
85
- if(user_input[1] != eol) decimal_places = atoi(&user_input[1]);
+ if(!isSentinel(user_input[1])) decimal_places = atoi(&user_input[1]);
86
printVerbose(F("Decimal:"));
87
println(decimal_places);
88
0 commit comments