Added temp_sensor_stop

Co-authored-by: hierophect <hierophect@gmail.com>
This commit is contained in:
microDev 2020-09-08 21:07:00 +05:30 committed by GitHub
parent c68723db3c
commit 14af8e4b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}