8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
microcontroller.cpu.temperature
1 parent f76351d commit 512cda8Copy full SHA for 512cda8
ports/espressif/common-hal/microcontroller/Processor.c
@@ -40,13 +40,13 @@
40
41
#include "soc/efuse_reg.h"
42
43
-#if !defined(CONFIG_IDF_TARGET_ESP32) && !defined(CONFIG_IDF_TARGET_ESP32S3)
+#if !defined(CONFIG_IDF_TARGET_ESP32)
44
#include "driver/temp_sensor.h"
45
#endif
46
47
float common_hal_mcu_processor_get_temperature(void) {
48
float tsens_out;
49
- #if defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32)
+ #if defined(CONFIG_IDF_TARGET_ESP32)
50
mp_raise_NotImplementedError(NULL);
51
#else
52
temp_sensor_config_t temp_sensor = TSENS_CONFIG_DEFAULT(); // DEFAULT: range:-10℃ ~ 80℃, error < 1℃.
0 commit comments