From 6ee9e305cce650b7e6ad9c6d06fe7ad31f2350d5 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Tue, 5 Dec 2023 20:05:58 +0100 Subject: [PATCH] tcp_cmd update casting of lcd_display_text following the standardisation of the lcd_api --- 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 b2570c8..c8fbe93 100644 --- a/project/Core/Src/tcp_cmd.c +++ b/project/Core/Src/tcp_cmd.c @@ -193,8 +193,8 @@ static bool tcp_cmd_parser(struct tcp_pcb* pcb, int argc, char** argv) { return false; } if (argc == 4) { - 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); + LOG_INFO(TAG, "Setting text %s @ %lu, %lu", argv[1], (uint32_t)strtoul(argv[2], NULL, 10), (uint32_t)strtoul(argv[3], NULL, 10)); + lcd_display_text((const char*)argv[1], (uint32_t)strtoul(argv[2], NULL, 10), (uint32_t)strtoul(argv[3], NULL, 10), color_txt, color_bg, LCD_FONT24); return false; } LOG_WARN(TAG, "Bad usage of text");