Skip to content

Commit 2dc0498

Browse files
committed
machine readable some refactoring
1 parent 5a26e26 commit 2dc0498

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/communication/Commander.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void Commander::run(char* user_input){
6262
switch(id){
6363
case CMD_SCAN:
6464
for(int i=0; i < call_count; i++){
65-
printMachineReadable(F("?"));
65+
printMachineReadable(CMD_SCAN);
6666
print(call_ids[i]);
6767
print(":");
6868
if(call_label[i]) println(call_label[i]);
@@ -72,6 +72,7 @@ void Commander::run(char* user_input){
7272
case CMD_VERBOSE:
7373
if(!isSentinel(user_input[1])) verbose = (VerboseMode)atoi(&user_input[1]);
7474
printVerbose(F("Verb:"));
75+
printMachineReadable(CMD_VERBOSE);
7576
switch (verbose){
7677
case VerboseMode::nothing:
7778
println(F("off!"));
@@ -88,7 +89,7 @@ void Commander::run(char* user_input){
8889
case CMD_DECIMAL:
8990
if(!isSentinel(user_input[1])) decimal_places = atoi(&user_input[1]);
9091
printVerbose(F("Decimal:"));
91-
printMachineReadable(F("#"));
92+
printMachineReadable(CMD_DECIMAL);
9293
println(decimal_places);
9394
break;
9495
default:

0 commit comments

Comments
 (0)