fix(temperature_sensor): Fix temperature sensor hal log causing crash

This commit is contained in:
C.S.M
2025-08-21 10:32:58 +08:00
parent 09fce0cf2a
commit de621fe22d

View File

@@ -51,7 +51,7 @@ int16_t temperature_sensor_hal_get_degree(bool *range_changed)
} else { } else {
s_hal_tsens_idx = 2; s_hal_tsens_idx = 2;
} }
HAL_LOGD(TAG_TSENS, "range changed, change to index %d", s_hal_tsens_idx); HAL_EARLY_LOGD(TAG_TSENS, "range changed, change to index %d", s_hal_tsens_idx);
temperature_dac = temperature_sensor_attributes[s_hal_tsens_idx].reg_val; temperature_dac = temperature_sensor_attributes[s_hal_tsens_idx].reg_val;
s_hal_record_min = temperature_sensor_attributes[s_hal_tsens_idx].range_min; s_hal_record_min = temperature_sensor_attributes[s_hal_tsens_idx].range_min;
s_hal_record_max = temperature_sensor_attributes[s_hal_tsens_idx].range_max; s_hal_record_max = temperature_sensor_attributes[s_hal_tsens_idx].range_max;