diff --git a/project/Core/Src/modbus_tcp.c b/project/Core/Src/modbus_tcp.c index 3d29eeb..898c28c 100644 --- a/project/Core/Src/modbus_tcp.c +++ b/project/Core/Src/modbus_tcp.c @@ -76,7 +76,8 @@ static err_t modbus_incoming_data(void* arg, struct tcp_pcb* pcb, struct pbuf* p text_color_blue = (uint8_t)(registers[REG_06]); // 06 nr_img = (uint8_t)(registers[REG_07]); // 07 - LOG_INFO(TAG, "%d %d %d %d %d %d %d",background_red,background_green,background_blue,text_color_red,text_color_green,text_color_blue,nr_img); + LOG_INFO(TAG, "%d %d %d %d %d %d %d", background_red, background_green, background_blue, text_color_red, + text_color_green, text_color_blue, nr_img); counter = 0; for (int i = START_DATA; i < REG_LENGTH; i++) { @@ -100,7 +101,7 @@ static err_t modbus_incoming_data(void* arg, struct tcp_pcb* pcb, struct pbuf* p size_t number_of_files = llfs_file_count(); // How many files that there are if (number_of_files > 0) { - llfs_file_t file_list[number_of_files]; // Reserving memory for the list + llfs_file_t file_list[number_of_files]; // Reserving memory for the list number_of_files = llfs_file_list(file_list, number_of_files, NULL); // Freed memory filled with the list if (number_of_files < nr_img) { @@ -108,7 +109,8 @@ static err_t modbus_incoming_data(void* arg, struct tcp_pcb* pcb, struct pbuf* p lcd_clear_images(); lcd_stop_all_gifs(); - lcd_display_text(text, 10, 10, text_foreground_color, result_background, LCD_FONT24); // When no image + lcd_display_text(text, 10, 10, text_foreground_color, result_background, + LCD_FONT24); // When no image lcd_display_text("FILE NOT IN FILESYSTEM", 10, 75, LCD_RED, LCD_BLACK, LCD_FONT24); } else {