From 25c8f5b7508c4bb8e821b21ba3bdc31d563dbb82 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Sun, 3 Dec 2023 22:22:08 +0100 Subject: [PATCH] modbus_tcp change over to the new lcd function so we don't have to loop over the files again --- project/Core/Src/modbus_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/Core/Src/modbus_tcp.c b/project/Core/Src/modbus_tcp.c index 3edc640..d3abf82 100644 --- a/project/Core/Src/modbus_tcp.c +++ b/project/Core/Src/modbus_tcp.c @@ -110,9 +110,9 @@ static err_t modbus_incoming_data(void* arg, struct tcp_pcb* pcb, struct pbuf* p if (ext == NULL) { LOG_CRIT(TAG, "No valid extension found"); } else if (strcmp(ext, ".gif") == 0) { - lcd_draw_gif_from_fs(file_list[registers[REG_IMAGE_NR] - 1].name, 0, 75); + lcd_draw_gif_from_llfs_file(&file_list[registers[REG_IMAGE_NR] - 1], 0, 75); } else if (strcmp(ext, ".bmp") == 0) { - lcd_draw_img_from_fs(file_list[registers[REG_IMAGE_NR] - 1].name, 0, 75); + lcd_draw_img_from_llfs_file(&file_list[registers[REG_IMAGE_NR] - 1], 0, 75); } } }