diff options
| author | microDev <70126934+microDev1@users.noreply.github.com> | 2020-09-08 21:07:00 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-08 21:07:00 +0530 |
| commit | 14af8e4b42df4c0ea84d1fe6f4998342aa5f3c71 (patch) | |
| tree | b33245a0222e3a8f24096b8bc59ae31699b688e1 | |
| parent | c68723db3c299f9f77af79b4eda7ee1083004392 (diff) | |
Added temp_sensor_stop
Co-authored-by: hierophect <hierophect@gmail.com>
| -rw-r--r-- | ports/esp32s2/common-hal/microcontroller/Processor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/esp32s2/common-hal/microcontroller/Processor.c b/ports/esp32s2/common-hal/microcontroller/Processor.c index 0df3e9e92..c64fa010e 100644 --- a/ports/esp32s2/common-hal/microcontroller/Processor.c +++ b/ports/esp32s2/common-hal/microcontroller/Processor.c @@ -42,6 +42,7 @@ float common_hal_mcu_processor_get_temperature(void) { temp_sensor_set_config(temp_sensor); temp_sensor_start(); temp_sensor_read_celsius(&tsens_out); + temp_sensor_stop(); return tsens_out; } |
