added echo for serial debugger and some more commands
This commit is contained in:
parent
e913ce6e1b
commit
8f494dfa05
@ -73,6 +73,7 @@ void Debug_Process()
|
||||
inputBuffer[inputCnt] = 0; // terminate the String
|
||||
inputCnt = 0;
|
||||
InputProcessed = CMD_COMPLETE;
|
||||
Serial.write(inputChar);
|
||||
break;
|
||||
|
||||
case 0x1B: // Esc
|
||||
@ -84,6 +85,7 @@ void Debug_Process()
|
||||
case 0x21 ... 0x7E: // it's a real letter or sign and not some control-chars
|
||||
inputBuffer[inputCnt] = inputChar;
|
||||
inputCnt++;
|
||||
Serial.write(inputChar);
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -117,6 +119,10 @@ void Debug_Process()
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (InputProcessed != IDLE)
|
||||
Serial.print(">");
|
||||
|
||||
InputProcessed = IDLE;
|
||||
}
|
||||
/**
|
||||
@ -257,6 +263,14 @@ void processCmdDebug(String command)
|
||||
MaintainDTC(DTC_FAKE_DTC_WARN, true, millis());
|
||||
else if (command == "dtc_info")
|
||||
MaintainDTC(DTC_FAKE_DTC_INFO, true, millis());
|
||||
else if (command == "notify_error")
|
||||
Websocket_PushNotification("Debug Error Notification", error);
|
||||
else if (command == "notify_warning")
|
||||
Websocket_PushNotification("Debug Warning Notification", warning);
|
||||
else if (command == "notify_success")
|
||||
Websocket_PushNotification("Debug Success Notification", success);
|
||||
else if (command == "notify_info")
|
||||
Websocket_PushNotification("Debug Info Notification", info);
|
||||
else
|
||||
Debug_pushMessage("unknown Command\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user