mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Fix statusupdate and page styles
This commit is contained in:
parent
f47cd7b6a0
commit
c2a954bbe8
14
src/hasp.cpp
14
src/hasp.cpp
@ -584,14 +584,6 @@ void haspSetup(JsonObject settings)
|
||||
{
|
||||
guiSetDim(haspStartDim);
|
||||
|
||||
/* Create all screens */
|
||||
for(uint8_t i = 0; i < (sizeof pages / sizeof *pages); i++) {
|
||||
pages[i] = lv_obj_create(NULL, NULL);
|
||||
// lv_obj_set_size(pages[0], hres, vres);
|
||||
}
|
||||
|
||||
// haspSetConfig(settings);
|
||||
|
||||
/*
|
||||
#ifdef LV_HASP_HOR_RES_MAX
|
||||
lv_coord_t hres = LV_HASP_HOR_RES_MAX;
|
||||
@ -684,6 +676,12 @@ void haspSetup(JsonObject settings)
|
||||
}
|
||||
// lv_theme_set_current(th);
|
||||
|
||||
/* Create all screens using the theme */
|
||||
for(uint8_t i = 0; i < (sizeof pages / sizeof *pages); i++) {
|
||||
pages[i] = lv_obj_create(NULL, NULL);
|
||||
// lv_obj_set_size(pages[0], hres, vres);
|
||||
}
|
||||
|
||||
haspDisconnect();
|
||||
haspLoadPage(haspPagesPath);
|
||||
haspSetPage(haspStartPage);
|
||||
|
@ -208,7 +208,7 @@ void mqtt_send_statusupdate()
|
||||
doc[F("heapFrag")] = halGetHeapFragmentation();
|
||||
doc[F("espCanUpdate")] = false;
|
||||
doc[F("espCore")] = halGetCoreVersion().c_str();
|
||||
doc[F("tftDriver")] = tftDriverName();
|
||||
doc[F("tftDriver")] = tftDriverName().c_str();
|
||||
|
||||
#if defined(ARDUINO_ARCH_ESP8266)
|
||||
doc[F("espVcc")] = (float)ESP.getVcc() / 1000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user