fix(P4): Compiler-Warnungen des Display-Builds beseitigt (1.1.1)
Von 68 Warnungen (arduino-cli --warnings all) auf eine einzige, die im ESP32-Core-SDK steckt und nicht im Projekt behebbar ist. - LV_FS_DEFAULT_DRIVE_LETTER heißt ab LVGL 9.3 LV_FS_DEFAULT_DRIVER_LETTER. Der alte Name funktionierte weiter, löste aber in lv_api_map_v9_1.h ein #warning in JEDER Übersetzungseinheit aus, die lvgl.h einbindet — allein rund 60 Warnungen pro Build, die alles andere zugedeckt haben. In lv_conf.h umbenannt. - LV_PART_* und LV_STATE_* sind in LVGL 9 verschiedene Enum-Typen; die direkte |-Verknüpfung ist in C++20 abgekündigt. Neues Makro TH_SEL(part, state) in theme.h castet beide auf lv_style_selector_t (ohnehin uint32_t), 5 Stellen. - Bug-Fix: Der Puffer der Cold-Extraction-Infozeile auf der Brew-Seite war mit 192 Bytes zu klein für den ~205 Zeichen langen Text (das "°" zählt doppelt), die letzte Zeile wurde abgeschnitten. Jetzt 256 Bytes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1933a41e64
commit
1f8cce48aa
@@ -389,7 +389,7 @@ static lv_obj_t* row(lv_obj_t* parent, const char* label) {
|
||||
static lv_obj_t* add_switch(lv_obj_t* parent, const char* label) {
|
||||
lv_obj_t* r = row(parent, label);
|
||||
lv_obj_t* sw = lv_switch_create(r);
|
||||
lv_obj_set_style_bg_color(sw, COL_ACCENT, LV_PART_INDICATOR | LV_STATE_CHECKED);
|
||||
lv_obj_set_style_bg_color(sw, COL_ACCENT, TH_SEL(LV_PART_INDICATOR, LV_STATE_CHECKED));
|
||||
return sw;
|
||||
}
|
||||
static lv_obj_t* add_num(lv_obj_t* parent, const char* label) {
|
||||
@@ -2348,7 +2348,7 @@ static void build_wifi(lv_obj_t* p) {
|
||||
// Aktionszeile: Scan + gewaehltes Netz
|
||||
lv_obj_t* ar = row(p, nullptr);
|
||||
g_btnScan = th_accent_button(ar, LV_SYMBOL_REFRESH " Netzwerke suchen");
|
||||
lv_obj_set_style_bg_opa(g_btnScan, LV_OPA_40, LV_PART_MAIN | LV_STATE_DISABLED);
|
||||
lv_obj_set_style_bg_opa(g_btnScan, LV_OPA_40, TH_SEL(LV_PART_MAIN, LV_STATE_DISABLED));
|
||||
lv_obj_add_event_cb(g_btnScan, wifi_scan_cb, LV_EVENT_CLICKED, nullptr);
|
||||
lblWifiSel = lv_label_create(ar);
|
||||
lv_label_set_text(lblWifiSel, "Netz: -");
|
||||
@@ -2585,13 +2585,13 @@ static void build_profiles(lv_obj_t* p) {
|
||||
lv_obj_set_style_text_color(profDetailLbl, COL_TEXT_DIM, 0);
|
||||
profLoadBtn = th_accent_button(dcard, "Profil laden");
|
||||
lv_obj_set_width(profLoadBtn, LV_PCT(100));
|
||||
lv_obj_set_style_bg_opa(profLoadBtn, LV_OPA_40, LV_PART_MAIN | LV_STATE_DISABLED);
|
||||
lv_obj_set_style_bg_opa(profLoadBtn, LV_OPA_40, TH_SEL(LV_PART_MAIN, LV_STATE_DISABLED));
|
||||
lv_obj_add_state(profLoadBtn, LV_STATE_DISABLED);
|
||||
lv_obj_add_event_cb(profLoadBtn, prof_do_load_cb, LV_EVENT_CLICKED, nullptr);
|
||||
|
||||
profDelBtn = th_button(dcard, "Profil löschen", COL_DANGER, COL_TEXT);
|
||||
lv_obj_set_width(profDelBtn, LV_PCT(100));
|
||||
lv_obj_set_style_bg_opa(profDelBtn, LV_OPA_40, LV_PART_MAIN | LV_STATE_DISABLED);
|
||||
lv_obj_set_style_bg_opa(profDelBtn, LV_OPA_40, TH_SEL(LV_PART_MAIN, LV_STATE_DISABLED));
|
||||
lv_obj_add_state(profDelBtn, LV_STATE_DISABLED);
|
||||
lv_obj_add_event_cb(profDelBtn, prof_delete_cb, LV_EVENT_CLICKED, nullptr);
|
||||
}
|
||||
@@ -3870,7 +3870,7 @@ void ui_update(const MachineState& st) {
|
||||
}
|
||||
if (lblBrewColdEx) {
|
||||
if (st.cxEnabled) {
|
||||
char b[192];
|
||||
char b[256]; // der Text ist ~205 Zeichen lang (das ° zaehlt als 2 Bytes)
|
||||
snprintf(b, sizeof(b),
|
||||
"Cold Extraction (nur Anzeige, Einstellung in der Web-UI):\n"
|
||||
"Freigabe < %.1f °C | Vorbenetzung %.0f s | Ziel %.0f g | max. %.0f s\n"
|
||||
|
||||
Reference in New Issue
Block a user