Move dispatchSetup to main setup for oobe support

This commit is contained in:
fvanroie 2021-02-27 18:26:54 +01:00
parent 96dddbb5b2
commit 489ccd4034
3 changed files with 3 additions and 2 deletions

View File

@ -319,7 +319,6 @@ static void custom_font_apply_cb(lv_theme_t* th, lv_obj_t* obj, lv_theme_style_t
*/
void haspSetup(void)
{
dispatchSetup();
haspDevice.set_backlight_level(haspStartDim);
/******* File System Test ********************************************************************/

View File

@ -58,7 +58,8 @@ void setup()
#endif
guiSetup();
debugSetup(); // Init the console
debugSetup(); // Init the console
dispatchSetup(); // for hasp and oobe
#if HASP_USE_CONFIG > 0
if(!oobeSetup())

View File

@ -110,6 +110,7 @@ void setup()
// debugSetup(); // Init the console
printf("%s %d\n", __FILE__, __LINE__);
dispatchSetup(); // for hasp and oobe
haspSetup();
#if HASP_USE_MQTT > 0