diff --git a/esp3d/src/core/commands/ESP420.cpp b/esp3d/src/core/commands/ESP420.cpp index aa5f39b9..0d8f4511 100644 --- a/esp3d/src/core/commands/ESP420.cpp +++ b/esp3d/src/core/commands/ESP420.cpp @@ -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";