From d015666096ddf4c895dbb452a51de66472171d1d Mon Sep 17 00:00:00 2001 From: Jonas Arnold Date: Sat, 3 Dec 2022 13:13:21 +0100 Subject: [PATCH] added McuUart485 to shell for better control about possible errors --- ADIS_tinyK22_SplitFlap/source/shell.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ADIS_tinyK22_SplitFlap/source/shell.c b/ADIS_tinyK22_SplitFlap/source/shell.c index 87ddcaa..f52925b 100644 --- a/ADIS_tinyK22_SplitFlap/source/shell.c +++ b/ADIS_tinyK22_SplitFlap/source/shell.c @@ -16,7 +16,10 @@ #include "minIni/McuMinINI.h" #include "minIni/McuFlash.h" #include "nvmc.h" -#include "rs485.h" +#if PL_CONFIG_USE_RS485 + #include "rs485.h" + #include "McuUart485.h" +#endif #define SHELL_CMD_ELEM_SIZE (sizeof(Shell_cmd_s)) @@ -172,6 +175,7 @@ static const McuShell_ParseCommandCallback CmdParserTable[] = NVMC_ParseCommand, #if PL_CONFIG_USE_RS485 RS485_ParseCommand, + McuUart485_ParseCommand, #endif NULL /* Sentinel */ };