Skip to content

Commit 14af8e4

Browse files
Added temp_sensor_stop
Co-authored-by: hierophect <[email protected]>
1 parent c68723d commit 14af8e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ float common_hal_mcu_processor_get_temperature(void) {
4242
temp_sensor_set_config(temp_sensor);
4343
temp_sensor_start();
4444
temp_sensor_read_celsius(&tsens_out);
45+
temp_sensor_stop();
4546
return tsens_out;
4647
}
4748

0 commit comments

Comments
 (0)