Move RS-232 status under debug. Fix #2 from list.

This commit is contained in:
2026-08-31 03:45:38 +02:00
parent 2aafff25be
commit d9bd86bb84
8 changed files with 19 additions and 21 deletions
+4 -7
View File
@@ -1579,6 +1579,7 @@ DEFINE_OWNED_COMMAND(rts_flow_test)
static void print_debug_usage(void)
{
printf("Usage:\n");
printf(" debug status\n");
printf(" debug transceiver <enable|disable>\n");
printf(" debug drivers <TX 0|1> <DTR 0|1> <RTS 0|1>\n");
printf(" debug loopback-a|loopback-b|valid-test\n");
@@ -1595,6 +1596,9 @@ static int command_debug(int argc, char **argv)
}
/* Existing handlers expect their own command name in argv[0]. */
if (strcmp(argv[1], "status") == 0) {
return command_status(argc - 1, argv + 1);
}
if (strcmp(argv[1], "transceiver") == 0) {
return command_transceiver(argc - 1, argv + 1);
}
@@ -1647,13 +1651,6 @@ esp_err_t rs232_hw_test_register_console_commands(void)
}
const esp_console_cmd_t commands[] = {
{
.command = "status",
.help = "Show MAX3243 driver, receiver, VLD, and shutdown states",
.hint = NULL,
.func = &command_status,
.argtable = NULL,
},
{
.command = "debug",
.help = "Low-level RS-232 and local-UI hardware diagnostics; run 'debug' for subcommands",