diff --git a/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.cpp b/Platformio/src/applicationInternal/gui/guiMemoryOptimizer.cpp index bf77aa57..8c03a70f 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 fdd688e4..83a87c49 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);