From 3b5e8b5c397219333d21918799ffa4003e82a608 Mon Sep 17 00:00:00 2001 From: KlausMu Date: Tue, 9 Apr 2024 12:49:47 +0200 Subject: [PATCH] changed u_int8_t to int due to consistancy and for mingw --- Platformio/src/applicationInternal/gui/guiMemoryOptimizer.cpp | 2 +- Platformio/src/applicationInternal/gui/guiMemoryOptimizer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.cpp b/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.cpp index bf77aa5..8c03a70 100644 --- a/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.cpp +++ b/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.cpp @@ -13,7 +13,7 @@ tab_in_memory tabs_in_memory[3] = {{NULL, -1, ""}, {NULL, -1, ""}, {NULL, -1, "" // holds the ids of the tabs we had in memory before, so that we can determine the next or previous id int tabs_in_memory_previous_listIndex[3]= {-1 , -1, -1}; -bool gui_memoryOptimizer_isTabIDInMemory(u_int8_t tabID) { +bool gui_memoryOptimizer_isTabIDInMemory(int tabID) { // range check if ((tabID < 0) || (tabID >= 3)) { return false; diff --git a/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.h b/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.h index fdd688e..83a87c4 100644 --- a/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.h +++ b/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.h @@ -2,5 +2,5 @@ void gui_memoryOptimizer_prepare_startup(); void gui_memoryOptimizer_doAfterSliding_deletionAndCreation(lv_obj_t** tabview, int oldTabID, int newTabID, bool newGuiList, lv_obj_t** panel, lv_obj_t** img1, lv_obj_t** img2); -bool gui_memoryOptimizer_isTabIDInMemory(u_int8_t tabID); +bool gui_memoryOptimizer_isTabIDInMemory(int tabID); bool gui_memoryOptimizer_isGUInameInMemory(std::string guiName);