diff --git a/components/ehmtxv2/EHMTX.cpp b/components/ehmtxv2/EHMTX.cpp index b62852a..8c7ad56 100644 --- a/components/ehmtxv2/EHMTX.cpp +++ b/components/ehmtxv2/EHMTX.cpp @@ -2022,6 +2022,7 @@ namespace esphome screen->status(); } +#ifdef USE_Fireplugin void EHMTX::fire_screen(int lifetime, int screen_time) { EHMTX_queue *screen = this->find_mode_queue_element(MODE_FIRE); @@ -2040,6 +2041,7 @@ namespace esphome ESP_LOGD(TAG, "fire screen: lifetime: %d screen_time:%d ", lifetime, screen_time); screen->status(); } +#endif void EHMTX::full_screen(std::string iconname, int lifetime, int screen_time) { diff --git a/components/ehmtxv2/EHMTX.h b/components/ehmtxv2/EHMTX.h index 58aec8b..2b60e57 100644 --- a/components/ehmtxv2/EHMTX.h +++ b/components/ehmtxv2/EHMTX.h @@ -4,6 +4,11 @@ #define USE_Fireplugin #include "esphome/components/time/real_time_clock.h" +#ifdef CONFIG_IDF_TARGET_ESP32S3 +#undef USE_Fireplugin +#define F(x) (x) +#endif + const uint8_t MAXQUEUE = 24; const uint8_t C_RED = 240; // default const uint8_t C_BLUE = 240;