From d3fbf75b36c672746b3a42fa16b025a89761c13d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Mon, 10 May 2021 12:34:30 +0200 Subject: [PATCH] application: minor, rename autodetect to tx --- README.md | 2 +- application.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1da484c..c6e17de 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ provide as argument the channel you want to monitor. this works like the `monitor` command, but has the advantage to detect high voltages down to 1.5V (ideal for 1.8V logic). it will also show the (maximum) frequency of the signal (useful to clock and baud rate measurement). -to detect the configuration of a UART stream, use the `uart_auto` command. +to detect the configuration of a UART stream, use the `uart_tx` command. provide as argument the channel you want to monitor. as data comes it, it will figure out the baud rate, data bits, and parity of the stream. the configuration is displayed as it finds a better match. diff --git a/application.c b/application.c index c383241..19e2097 100644 --- a/application.c +++ b/application.c @@ -568,8 +568,6 @@ void TIM_ISR(FREQUENCY_TIMER)(void) */ static void command_monitor_single(void* argument) { - (void)argument; // we won't use the argument - // get input channel if (NULL == argument) { puts("provide channel to monitor\n"); @@ -730,8 +728,6 @@ static void uart_configuration_reset(struct uart_configuration_t* configuration) */ static void command_uart_autodetect(void* argument) { - (void)argument; // we won't use the argument - // get input channel if (NULL == argument) { puts("provide channel to monitor for UART activity\n"); @@ -1397,8 +1393,8 @@ static const struct menu_command_t menu_commands[] = { }, { .shortcut = 'a', - .name = "uart_auto", - .command_description = "autodetect UART configuration", + .name = "uart_tx", + .command_description = "autodetect UART configuration of TX pin", .argument = MENU_ARGUMENT_UNSIGNED, .argument_description = "CH", .command_handler = &command_uart_autodetect,