From d27c0b36beb2e87a5c758fe4578078bb94a70a1c Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 14 Nov 2025 20:26:09 +0100 Subject: [PATCH] Fix p4 safeboot compile (#24119) --- tasmota/tasmota_support/support_wifi.ino | 2 ++ tasmota/tasmota_xdrv_driver/xdrv_84_esp32_hosted.ino | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tasmota/tasmota_support/support_wifi.ino b/tasmota/tasmota_support/support_wifi.ino index 8b69bffce..de1673230 100644 --- a/tasmota/tasmota_support/support_wifi.ino +++ b/tasmota/tasmota_support/support_wifi.ino @@ -371,9 +371,11 @@ void WifiBegin(uint8_t flag, uint8_t channel) { WiFi.waitForConnectResult(1000); // https://github.com/arendst/Tasmota/issues/14985 } +#ifndef FIRMWARE_SAFEBOOT #ifdef CONFIG_ESP_WIFI_REMOTE_ENABLED HostedMCUStatus(); #endif // CONFIG_ESP_WIFI_REMOTE_ENABLED +#endif // FIRMWARE_SAFEBOOT } /** diff --git a/tasmota/tasmota_xdrv_driver/xdrv_84_esp32_hosted.ino b/tasmota/tasmota_xdrv_driver/xdrv_84_esp32_hosted.ino index 75be6f101..213fc64ea 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_84_esp32_hosted.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_84_esp32_hosted.ino @@ -8,6 +8,7 @@ #ifdef ESP32 #ifdef CONFIG_ESP_WIFI_REMOTE_ENABLED +#ifndef FIRMWARE_SAFEBOOT /*********************************************************************************************\ * Support for Hosted MCU to be used on ESP32-H2 and ESP32-P4 \*********************************************************************************************/ @@ -378,5 +379,6 @@ bool Xdrv84(uint32_t function) { return result; } +#endif // FIRMWARE_SAFEBOOT #endif // CONFIG_ESP_WIFI_REMOTE_ENABLED #endif // ESP32 \ No newline at end of file