diff --git a/tasmota/tasmota_template.h b/tasmota/tasmota_template.h index 5b600eee4..4e2dddaad 100644 --- a/tasmota/tasmota_template.h +++ b/tasmota/tasmota_template.h @@ -159,7 +159,9 @@ enum UserSelectablePins { GPIO_TFMINIPLUS_TX, GPIO_TFMINIPLUS_RX, // TFmini Plus ToF sensor GPIO_ZEROCROSS, #ifdef ESP32 +#if CONFIG_IDF_TARGET_ESP32 GPIO_HALLEFFECT, +#endif // CONFIG_IDF_TARGET_ESP32 GPIO_EPD_DATA, // Base connection EPD driver #endif GPIO_SENSOR_END }; diff --git a/tasmota/xsns_87_esp32_sensors.ino b/tasmota/xsns_87_esp32_sensors.ino index c5fc80d52..612c7feb3 100644 --- a/tasmota/xsns_87_esp32_sensors.ino +++ b/tasmota/xsns_87_esp32_sensors.ino @@ -18,6 +18,8 @@ */ #ifdef ESP32 +// Below test to solve ESP32-C3 compilations (20210420) +#if CONFIG_IDF_TARGET_ESP32 /*********************************************************************************************\ * ESP32 CPU Temperature and optional Hall Effect sensor * @@ -124,4 +126,5 @@ bool Xsns87(uint8_t function) { return result; } +#endif // CONFIG_IDF_TARGET_ESP32 #endif // ESP32