mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
Allow Hall and CPU temp only on ESP32
This commit is contained in:
parent
33dcbb4363
commit
7ad9a103be
@ -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 };
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user