mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-12 06:09:01 +08:00
Update ESP420.cpp
This commit is contained in:
parent
806bc65b81
commit
0614ae21a3
@ -588,13 +588,34 @@ void ESP3DCommands::ESP420(int cmd_params_pos, ESP3DMessage* msg) {
|
||||
|
||||
#if COMMUNICATION_PROTOCOL == RAW_SERIAL || COMMUNICATION_PROTOCOL == MKS_SERIAL
|
||||
// serial enabled
|
||||
tmpstr = (esp3d_serial_service.started()) ? "ON" : "OFF";
|
||||
if (esp3d_serial_service.started()) {
|
||||
tmpstr = "ON (UART";
|
||||
tmpstr += esp3d_serial_service.serialIndex();
|
||||
tmpstr += ")";
|
||||
} else {
|
||||
tmpstr = "OFF";
|
||||
}
|
||||
if (!dispatchIdValue(json, "serial", tmpstr.c_str(), target, requestId,
|
||||
false)) {
|
||||
return;
|
||||
}
|
||||
#endif // COMMUNICATION_PROTOCOL == RAW_SERIAL || COMMUNICATION_PROTOCOL ==
|
||||
// MKS_SERIAL
|
||||
#if defined (ESP_SERIAL_BRIDGE_OUTPUT)
|
||||
// serial bridge enabled
|
||||
if (serial_bridge_service.started()) {
|
||||
tmpstr = "ON (UART";
|
||||
tmpstr += serial_bridge_service.serialIndex();
|
||||
tmpstr += ")";
|
||||
} else {
|
||||
tmpstr = "OFF";
|
||||
}
|
||||
if (!dispatchIdValue(json, "serial_bridge", tmpstr.c_str(), target, requestId,
|
||||
false)) {
|
||||
return;
|
||||
}
|
||||
#endif // ESP_SERIAL_BRIDGE_OUTPUT
|
||||
|
||||
#if defined(AUTHENTICATION_FEATURE)
|
||||
// authentication enabled
|
||||
tmpstr = "ON";
|
||||
|
Loading…
x
Reference in New Issue
Block a user