Enable empty theme

This commit is contained in:
fvanroie 2020-12-31 02:55:13 +01:00
parent e846d91cc0
commit cda9436182

View File

@ -5,7 +5,10 @@
#include "ArduinoJson.h"
#include "ArduinoLog.h"
// #include "StreamUtils.h" // For EEPromStream
#if HASP_USE_EEPROM > 0
#include "StreamUtils.h" // For EEPromStream
#endif
#include "lvgl.h"
#include "lv_conf.h"
@ -338,7 +341,7 @@ void haspSetup(void)
/* ********** Theme Initializations ********** */
if(haspThemeId == 8) haspThemeId = 1; // update old HASP id
if(haspThemeId == 9) haspThemeId = 5; // update old material id
if(haspThemeId <= 0 || haspThemeId > 5) haspThemeId = 1; // check bounds
if(haspThemeId < 0 || haspThemeId > 5) haspThemeId = 1; // check bounds
lv_theme_t * th = NULL;
lv_theme_hasp_flag_t hasp_flags = LV_THEME_HASP_FLAG_LIGHT;