Allow Hall and CPU temp only on ESP32

This commit is contained in:
Theo Arends 2021-04-20 09:54:02 +02:00
parent 33dcbb4363
commit 7ad9a103be
2 changed files with 5 additions and 0 deletions

View File

@ -159,7 +159,9 @@ enum UserSelectablePins {
GPIO_TFMINIPLUS_TX, GPIO_TFMINIPLUS_RX, // TFmini Plus ToF sensor GPIO_TFMINIPLUS_TX, GPIO_TFMINIPLUS_RX, // TFmini Plus ToF sensor
GPIO_ZEROCROSS, GPIO_ZEROCROSS,
#ifdef ESP32 #ifdef ESP32
#if CONFIG_IDF_TARGET_ESP32
GPIO_HALLEFFECT, GPIO_HALLEFFECT,
#endif // CONFIG_IDF_TARGET_ESP32
GPIO_EPD_DATA, // Base connection EPD driver GPIO_EPD_DATA, // Base connection EPD driver
#endif #endif
GPIO_SENSOR_END }; GPIO_SENSOR_END };

View File

@ -18,6 +18,8 @@
*/ */
#ifdef ESP32 #ifdef ESP32
// Below test to solve ESP32-C3 compilations (20210420)
#if CONFIG_IDF_TARGET_ESP32
/*********************************************************************************************\ /*********************************************************************************************\
* ESP32 CPU Temperature and optional Hall Effect sensor * ESP32 CPU Temperature and optional Hall Effect sensor
* *
@ -124,4 +126,5 @@ bool Xsns87(uint8_t function) {
return result; return result;
} }
#endif // CONFIG_IDF_TARGET_ESP32
#endif // ESP32 #endif // ESP32