@@ -54,6 +54,7 @@ esphome:
|
||||
platformio_options:
|
||||
build_flags:
|
||||
- -Wno-missing-field-initializers
|
||||
# - -mfix-esp32-psram-cache-issue
|
||||
# - -fdata-sections
|
||||
# - -ffunction-sections
|
||||
# - -Wl,--gc-sections
|
||||
@@ -100,8 +101,6 @@ esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: esp-idf
|
||||
sdkconfig_options:
|
||||
CONFIG_ESP32_REV_MIN_3: "y"
|
||||
|
||||
##### WIFI SETUP #####
|
||||
wifi:
|
||||
@@ -2659,13 +2658,15 @@ script:
|
||||
- lambda: return (!id(is_uploading_tft));
|
||||
then:
|
||||
- lambda: |-
|
||||
if (brightness == display_brightness->state and current_page->state != "boot" and current_page->state != "screensaver")
|
||||
disp1->send_command_printf("wakeup_timer.en=1");
|
||||
else
|
||||
disp1->set_backlight_brightness(brightness / 100.0f);
|
||||
current_brightness->update();
|
||||
if (!id(is_uploading_tft)) {
|
||||
if (brightness == display_brightness->state and current_page->state != "boot" and current_page->state != "screensaver")
|
||||
disp1->send_command_printf("wakeup_timer.en=1");
|
||||
else
|
||||
disp1->set_backlight_brightness(brightness / 100.0f);
|
||||
current_brightness->update();
|
||||
}
|
||||
- delay: 5s
|
||||
- lambda: current_brightness->update();
|
||||
- lambda: if (!id(is_uploading_tft)) current_brightness->update();
|
||||
|
||||
- id: set_climate
|
||||
mode: restart
|
||||
|
||||
Reference in New Issue
Block a user