From 85e8d05f687e12104809673974d21938094406da Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Wed, 19 Jan 2022 17:12:02 +0100 Subject: [PATCH] fix homekit enable --- tasmota/tasmota_configurations.h | 4 ++++ tasmota/tasmota_configurations_ESP32.h | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tasmota/tasmota_configurations.h b/tasmota/tasmota_configurations.h index a42407594..a19161b7f 100644 --- a/tasmota/tasmota_configurations.h +++ b/tasmota/tasmota_configurations.h @@ -1049,4 +1049,8 @@ #define USE_TLS // flag indicates we need to include TLS code #endif // USE_MQTT_TLS +#if(USE_MI_HOMEKIT != 1) // Enable(1)/ Disable(0) Homekit, only for the .c-file + #undef USE_MI_HOMEKIT +#endif //USE_MI_HOMEKIT + #endif // _TASMOTA_CONFIGURATIONS_H_ diff --git a/tasmota/tasmota_configurations_ESP32.h b/tasmota/tasmota_configurations_ESP32.h index b71d49a75..bdcfcee65 100644 --- a/tasmota/tasmota_configurations_ESP32.h +++ b/tasmota/tasmota_configurations_ESP32.h @@ -184,12 +184,8 @@ #define USE_BLE_ESP32 // Enable new BLE driver #define USE_EQ3_ESP32 #define USE_MI_ESP32 // (ESP32 only) Add support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash) -#ifdef USE_MI_ESP32 - #if(USE_MI_HOMEKIT != 1) //only for the .c-file - #undef USE_MI_HOMEKIT - #endif //USE_MI_HOMEKIT - #define USE_MI_EXT_GUI //enable dashboard style GUI -#endif //USE_MI_ESP32 +#define USE_MI_EXT_GUI //enable dashboard style GUI + #endif // FIRMWARE_BLUETOOTH /*********************************************************************************************\