From c630ffaae23564f6569d1ce84979668d4b56be52 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 12 Feb 2022 21:00:15 +0100 Subject: [PATCH] Homekit with Bluetooth firmware (#293) --- tasmota/tasmota_configurations.h | 4 ---- tasmota/tasmota_configurations_ESP32.h | 14 ++++++++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/tasmota/tasmota_configurations.h b/tasmota/tasmota_configurations.h index a19161b7f..a42407594 100644 --- a/tasmota/tasmota_configurations.h +++ b/tasmota/tasmota_configurations.h @@ -1049,8 +1049,4 @@ #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 997905f05..b1d0de26d 100644 --- a/tasmota/tasmota_configurations_ESP32.h +++ b/tasmota/tasmota_configurations_ESP32.h @@ -78,10 +78,16 @@ #define USE_ADC //#undef USE_BERRY // Disable Berry scripting language -#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) -#define USE_MI_EXT_GUI //enable dashboard style GUI +#if defined(USE_MI_HOMEKIT) // Switch between Homekit and full BLE driver + #define USE_MI_ESP32 + #if(USE_MI_HOMEKIT != 1) // Enable(1)/ Disable(0) Homekit, only for the .c-file + #undef USE_MI_HOMEKIT + #endif // disable USE_MI_HOMEKIT +#else + #define USE_BLE_ESP32 // Enable full BLE driver + #define USE_EQ3_ESP32 + #define USE_MI_ESP32 // (ESP32 only) Add support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash) +#endif // enable USE_MI_HOMEKIT #endif // FIRMWARE_BLUETOOTH