From 34cbb8f1431500d4d7479cc645e86f921cbe26c6 Mon Sep 17 00:00:00 2001 From: Jonas Arnold Date: Sat, 3 Dec 2022 13:13:55 +0100 Subject: [PATCH] report baud in status --- McuLib/src/McuUart485.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/McuLib/src/McuUart485.c b/McuLib/src/McuUart485.c index a5d2dc6..2971cdd 100644 --- a/McuLib/src/McuUart485.c +++ b/McuLib/src/McuUart485.c @@ -464,6 +464,10 @@ static uint8_t PrintStatus(const McuShell_StdIOType *io) { DecodeUARTFlags(flags, io) ; #endif + McuUtility_Num32uToStr(buf, sizeof(buf), McuUart485_CONFIG_UART_BAUDRATE); + McuUtility_strcat(buf, sizeof(buf), (unsigned char*)"\r\n"); + McuShell_SendStatusStr((unsigned char*)" baud", buf, io->stdOut); + #if McuLib_CONFIG_CPU_IS_ESP32 McuUtility_strcpy(buf, sizeof(buf), (unsigned char*)"buffer: "); McuUtility_strcatNum32u(buf, sizeof(buf), RS485_ESP_BUF_SIZE);