Add support ESP32-C3 internal temperature sensor

This commit is contained in:
Theo Arends 2021-07-14 11:39:59 +02:00
parent 0282943d46
commit 0851549b10
1 changed files with 2 additions and 3 deletions

View File

@ -18,8 +18,6 @@
*/ */
#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
* *
@ -131,12 +129,13 @@ bool Xsns127(uint8_t function) {
Esp32SensorShow(0); Esp32SensorShow(0);
break; break;
#endif // USE_WEBSERVER #endif // USE_WEBSERVER
#if CONFIG_IDF_TARGET_ESP32
case FUNC_INIT: case FUNC_INIT:
Esp32SensorInit(); Esp32SensorInit();
break; break;
#endif // CONFIG_IDF_TARGET_ESP32
} }
return result; return result;
} }
#endif // CONFIG_IDF_TARGET_ESP32
#endif // ESP32 #endif // ESP32