From 2d526b899a1197e2d62df91e6e527f13a6c8e968 Mon Sep 17 00:00:00 2001 From: Sani7 Date: Sat, 2 Dec 2023 22:41:57 +0100 Subject: [PATCH] tcp_cmd fix some log strings --- project/Core/Src/tcp_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/Core/Src/tcp_cmd.c b/project/Core/Src/tcp_cmd.c index a3c579d..f066a92 100644 --- a/project/Core/Src/tcp_cmd.c +++ b/project/Core/Src/tcp_cmd.c @@ -206,7 +206,7 @@ static bool tcp_cmd_parser(struct tcp_pcb* pcb, int argc, char** argv) { return false; } if (argc == 4) { - LOG_INFO(TAG, "Setting text %s @ %lu, %lu", argv[1], (uint32_t)strtoul(argv[2], NULL, 10), (uint32_t)strtoul(argv[3], NULL, 10)); + LOG_INFO(TAG, "Setting text %s @ %u, %u", argv[1], (uint16_t)strtoul(argv[2], NULL, 10), (uint16_t)strtoul(argv[3], NULL, 10)); lcd_display_text((const char*)argv[1], (uint16_t)strtoul(argv[2], NULL, 10), (uint16_t)strtoul(argv[3], NULL, 10), color_txt, color_bg, LCD_FONT24); return false; } @@ -232,7 +232,7 @@ static bool tcp_cmd_parser(struct tcp_pcb* pcb, int argc, char** argv) { return false; } if (argc == 5) { - LOG_INFO(TAG, "Setting text color to %s %s %s %s", argv[1], argv[2], argv[3], argv[4]); + LOG_INFO(TAG, "Setting background color to %s %s %s %s", argv[1], argv[2], argv[3], argv[4]); color_txt = 0xff000000; color_txt ^= (uint32_t)strtoul(argv[1], NULL, 10) << 24; color_txt |= (uint32_t)strtoul(argv[2], NULL, 10) << 16;