Skip to content

Commit

Permalink
Merge branch 'bugfix/temp_sensor_value' into 'release/v4.4'
Browse files Browse the repository at this point in the history
temperature_sensor: Fix issue that value is not accurate on ESP32-S3(v4.4)

See merge request espressif/esp-idf!19922
  • Loading branch information
suda-morris committed Sep 2, 2022
2 parents d0ba3fd + f2ac141 commit f6a7962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/driver/esp32s3/rtc_tempsensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static float parse_temp_sensor_raw_value(uint32_t tsens_raw, const int dac_offse
if (isnan(s_deltaT)) { //suggests that the value is not initialized
read_delta_t_from_efuse();
}
float result = (TSENS_ADC_FACTOR * (float)tsens_raw - TSENS_DAC_FACTOR * dac_offset - TSENS_SYS_OFFSET) - s_deltaT;
float result = (TSENS_ADC_FACTOR * (float)tsens_raw - TSENS_DAC_FACTOR * dac_offset - TSENS_SYS_OFFSET) - s_deltaT/10.0;
return result;
}

Expand Down

0 comments on commit f6a7962

Please sign in to comment.