mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-14 16:26:45 +00:00
RC Calibration
This commit is contained in:
@@ -278,7 +278,7 @@ static void wifi_init()
|
||||
ESP_ERROR_CHECK(esp_netif_init());
|
||||
//ESP_ERROR_CHECK(esp_event_loop_create_default());
|
||||
//wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
|
||||
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
|
||||
|
||||
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
|
||||
//ESP_ERROR_CHECK( esp_wifi_set_mode(ESPNOW_WIFI_MODE) );
|
||||
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
|
||||
@@ -292,6 +292,7 @@ static void wifi_init()
|
||||
//.listen_interval = 0, // Disable listen interval
|
||||
}
|
||||
};
|
||||
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
|
||||
ESP_ERROR_CHECK( esp_wifi_set_config(ESPNOW_WIFI_IF, &wifi_config) );
|
||||
ESP_ERROR_CHECK( esp_wifi_start());
|
||||
|
||||
|
Reference in New Issue
Block a user