ESP32-C3 RC

This commit is contained in:
2025-01-02 01:44:38 -05:00
parent 9bf067e829
commit db92d09450
4 changed files with 161 additions and 2 deletions

View File

@@ -741,7 +741,7 @@ static void motors_task (void *pvParameter) {}
*/
static void chip_sensor_init () {
temp_sensor = NULL;
temp_sensor_config = TEMPERATURE_SENSOR_CONFIG_DEFAULT(10, 50);
temperature_sensor_config_t 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");