Skip to content

Commit e981f0b

Browse files
committed
Merge branch 'contrib/github_pr_15850' into 'master'
fix(temp-sens): return temperature_sensor function (GitHub PR) Closes IDFGH-15178 See merge request espressif/esp-idf!38772
2 parents f7724ee + 2b4265b commit e981f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_driver_tsens/src/temperature_sensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ esp_err_t temperature_sensor_get_celsius(temperature_sensor_handle_t tsens, floa
301301

302302
if (*out_celsius < TEMPERATURE_SENSOR_LL_MEASURE_MIN || *out_celsius > TEMPERATURE_SENSOR_LL_MEASURE_MAX) {
303303
ESP_LOGE(TAG, "Exceeding temperature measure range.");
304-
return ESP_ERR_INVALID_STATE;
304+
return ESP_FAIL;
305305
}
306306
if (range_changed) {
307307
s_update_tsens_attribute(tsens);

0 commit comments

Comments
 (0)