From ded6a862da1b41b96236987f69dc62e1c9a79491 Mon Sep 17 00:00:00 2001 From: Barbudor Date: Mon, 6 Dec 2021 20:45:05 +0000 Subject: [PATCH] fix compile error --- tasmota/xdrv_85_BLE_EQ3_TRV.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasmota/xdrv_85_BLE_EQ3_TRV.ino b/tasmota/xdrv_85_BLE_EQ3_TRV.ino index cfe3bb33d..d69368268 100644 --- a/tasmota/xdrv_85_BLE_EQ3_TRV.ino +++ b/tasmota/xdrv_85_BLE_EQ3_TRV.ino @@ -128,7 +128,6 @@ print("".join(pin)) // for testing of BLE_ESP32, we remove xsns_62_MI_ESP32.ino completely, and instead add this modified xsns_52_ibeacon_BLE_ESP32.ino #if CONFIG_IDF_TARGET_ESP32 -#if ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(4, 0, 0) #ifdef USE_EQ3_ESP32 #ifdef ESP32 // ESP32 only. Use define USE_HM10 for ESP8266 support #ifdef USE_BLE_ESP32 @@ -226,7 +225,7 @@ uint8_t pairing = 0; #define EQ3_NUM_DEVICESLOTS 16 eq3_device_tag EQ3Devices[EQ3_NUM_DEVICESLOTS]; -void *EQ3mutex = nullptr; +SemaphoreHandle_t EQ3mutex = nullptr; int EQ3Period = 300; uint8_t EQ3OnlyAliased = 0; @@ -1765,5 +1764,4 @@ bool Xdrv85(uint8_t function) #endif // ESP32 #endif -#endif // ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(4, 0, 0) #endif // CONFIG_IDF_TARGET_ESP32