ESP32-C3 RC

This commit is contained in:
2025-01-02 01:43:30 -05:00
parent c59d3df8d7
commit cccbdfcc0b

View File

@@ -740,8 +740,8 @@ static void motors_task (void *pvParameter) {}
EXP32-C3 Chip built-in temprature sensor
*/
static void chip_sensor_init () {
temperature_sensor_handle_t temp_sensor = NULL;
temperature_sensor_config_t temp_sensor_config = TEMPERATURE_SENSOR_CONFIG_DEFAULT(10, 50);
temp_sensor = NULL;
temp_sensor_config = TEMPERATURE_SENSOR_CONFIG_DEFAULT(10, 50);
ESP_ERROR_CHECK(temperature_sensor_install(&temp_sensor_config, &temp_sensor));
ESP_LOGI(TAG, "Enable temperature sensor");