8000 enable `microcontroller.cpu.temperature` on esp32s3 · domdfcoding/circuitpython@512cda8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 512cda8

Browse files
committed
enable microcontroller.cpu.temperature on esp32s3
1 parent f76351d commit 512cda8

File tree

1 file chang E46E ed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/espressif/common-hal/microcontroller/Processor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040

4141
#include "soc/efuse_reg.h"
4242

43-
#if !defined(CONFIG_IDF_TARGET_ESP32) && !defined(CONFIG_IDF_TARGET_ESP32S3)
43+
#if !defined(CONFIG_IDF_TARGET_ESP32)
4444
#include "driver/temp_sensor.h"
4545
#endif
4646

4747
float common_hal_mcu_processor_get_temperature(void) {
4848
float tsens_out;
49-
#if defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32)
49+
#if defined(CONFIG_IDF_TARGET_ESP32)
5050
mp_raise_NotImplementedError(NULL);
5151
#else
5252
temp_sensor_config_t temp_sensor = TSENS_CONFIG_DEFAULT(); // DEFAULT: range:-10℃ ~ 80℃, error < 1℃.

0 commit comments

Comments
 (0)
0