RC Calibration

This commit is contained in:
2025-07-26 19:53:46 -04:00
parent c043208e5d
commit 8c350b805c

View File

@@ -276,11 +276,15 @@ static void ledc_init (void) {
static void wifi_init()
{
ESP_ERROR_CHECK(esp_netif_init());
//ESP_ERROR_CHECK(esp_event_loop_create_default());
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
ESP_ERROR_CHECK(esp_event_loop_create_default());
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK( esp_wifi_start());
ESP_ERROR_CHECK( esp_wifi_set_channel(CONFIG_ESPNOW_CHANNEL, WIFI_SECOND_CHAN_NONE));
//ESP_ERROR_CHECK( esp_wifi_set_mode(ESPNOW_WIFI_MODE) );
@@ -296,12 +300,11 @@ static void wifi_init()
};
// ESP_ERROR_CHECK( esp_wifi_init(wifi_config) );
//ESP_ERROR_CHECK( esp_wifi_set_config(ESPNOW_WIFI_IF, &wifi_config) );
ESP_ERROR_CHECK( esp_wifi_start());
//ESP_ERROR_CHECK( esp_wifi_set_mode(CONFIG_ESPNOW_WIFI_MODE_STATION_SOFTAP) );
//
//ESP_ERROR_CHECK( esp_wifi_set_channel(CONFIG_ESPNOW_CHANNEL, WIFI_SECOND_CHAN_NONE));
//ESP_ERROR_CHECK( esp_wifi_connect() );
////ESP_ERROR_CHECK( esp_wifi_connect() );
}
static void led_task (void *arg) {