mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-03 19:42:23 +00:00
RC Calibration
This commit is contained in:
@@ -462,12 +462,12 @@ static void wifi_init_sta(void) {
|
|||||||
|
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
esp_err_t wifi_ret = nvs_flash_init();
|
/*esp_err_t wifi_ret = nvs_flash_init();
|
||||||
if (wifi_ret == ESP_ERR_NVS_NO_FREE_PAGES || wifi_ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
if (wifi_ret == ESP_ERR_NVS_NO_FREE_PAGES || wifi_ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||||
ESP_ERROR_CHECK(nvs_flash_erase());
|
ESP_ERROR_CHECK(nvs_flash_erase());
|
||||||
wifi_ret = nvs_flash_init();
|
wifi_ret = nvs_flash_init();
|
||||||
}
|
}
|
||||||
ESP_ERROR_CHECK(wifi_ret);
|
ESP_ERROR_CHECK(wifi_ret);*/
|
||||||
|
|
||||||
//wifi_init_sta();
|
//wifi_init_sta();
|
||||||
//wifi_init();
|
//wifi_init();
|
||||||
@@ -525,12 +525,12 @@ void app_main(void)
|
|||||||
|
|
||||||
// ESP-NOW
|
// ESP-NOW
|
||||||
// Initialize NVS
|
// Initialize NVS
|
||||||
/*esp_err_t ret = nvs_flash_init();
|
esp_err_t ret = nvs_flash_init();
|
||||||
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||||
ESP_ERROR_CHECK( nvs_flash_erase() );
|
ESP_ERROR_CHECK( nvs_flash_erase() );
|
||||||
ret = nvs_flash_init();
|
ret = nvs_flash_init();
|
||||||
}
|
}
|
||||||
ESP_ERROR_CHECK( ret );*/
|
ESP_ERROR_CHECK( ret );
|
||||||
|
|
||||||
// Initialize buffer with 0s
|
// Initialize buffer with 0s
|
||||||
buf.x_axis = 0;
|
buf.x_axis = 0;
|
||||||
|
Reference in New Issue
Block a user