Add build flags
This commit is contained in:
@@ -54,6 +54,7 @@ esphome:
|
||||
platformio_options:
|
||||
build_flags:
|
||||
- -Wno-missing-field-initializers
|
||||
- -D NSPANEL_HA_BLUEPRINT_CORE
|
||||
|
||||
on_boot:
|
||||
- priority: 600.0 # This is where most sensors are set up.
|
||||
@@ -100,8 +101,6 @@ esp32:
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
debug:
|
||||
|
||||
psram:
|
||||
id: ext_ram
|
||||
|
||||
@@ -167,6 +166,7 @@ time:
|
||||
refresh_datetime->execute();
|
||||
refresh_relays->execute(3);
|
||||
refresh_hardware_buttons_bars->execute(3);
|
||||
refresh_wifi_icon->execute();
|
||||
- seconds: 30
|
||||
then:
|
||||
- script.execute: watchdog
|
||||
@@ -3110,6 +3110,7 @@ script:
|
||||
mode: restart
|
||||
then:
|
||||
- lambda: |-
|
||||
#include <esp_heap_caps.h>
|
||||
static const char *const TAG = "script.watchdog";
|
||||
if (id(is_uploading_tft)) {
|
||||
ESP_LOGW(TAG, "TFT upload in progress");
|
||||
@@ -3220,6 +3221,40 @@ script:
|
||||
ESP_LOGW(TAG, " TFT: UNKNOWN");
|
||||
else
|
||||
ESP_LOGI(TAG, " TFT: %s", version_tft->state.c_str());
|
||||
ESP_LOGI(TAG, "Packages:");
|
||||
#ifdef NSPANEL_HA_BLUEPRINT_CORE
|
||||
ESP_LOGI(TAG, " - Core");
|
||||
#endif
|
||||
#ifdef NSPANEL_HA_BLUEPRINT_ADVANCED
|
||||
ESP_LOGI(TAG, " - Advanced");
|
||||
#endif
|
||||
#ifdef NSPANEL_HA_BLUEPRINT_ADDON_UPLOAD_TFT
|
||||
ESP_LOGI(TAG, " - Upload TFT");
|
||||
#endif
|
||||
#ifdef NSPANEL_HA_BLUEPRINT_ADDON_CLIMATE_BASE
|
||||
ESP_LOGI(TAG, " - Climate - Base");
|
||||
#endif
|
||||
#ifdef NSPANEL_HA_BLUEPRINT_ADDON_CLIMATE_COOL
|
||||
ESP_LOGI(TAG, " - Climate - Cool");
|
||||
#endif
|
||||
#ifdef NSPANEL_HA_BLUEPRINT_ADDON_CLIMATE_DUAL
|
||||
ESP_LOGI(TAG, " - Climate - Dual");
|
||||
#endif
|
||||
#ifdef NSPANEL_HA_BLUEPRINT_ADDON_CLIMATE_HEAT
|
||||
ESP_LOGI(TAG, " - Climate - Heat");
|
||||
#endif
|
||||
#if defined(USE_BLUETOOTH_PROXY) || defined(USE_WEBSERVER) || defined(USE_CAPTIVE_PORTAL)
|
||||
ESP_LOGI(TAG, "Non-standard components:");
|
||||
#ifdef USE_CAPTIVE_PORTAL
|
||||
ESP_LOGI(TAG, " - Captive portal");
|
||||
#endif
|
||||
#ifdef USE_BLUETOOTH_PROXY
|
||||
ESP_LOGI(TAG, " - Bluetooth proxy");
|
||||
#endif
|
||||
#ifdef USE_WEBSERVER
|
||||
ESP_LOGI(TAG, " - Web server");
|
||||
#endif
|
||||
#endif
|
||||
refresh_wifi_icon->execute();
|
||||
}
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user