Fix wifi init crash: add missing NVS (and phy_init) partitions to partition table; make wifi/web startup non-fatal; enable Boya flash driver

This commit is contained in:
2026-09-09 22:15:09 +02:00
parent 96d14c0538
commit 686b8d1f6f
4 changed files with 28 additions and 7 deletions

View File

@@ -29,10 +29,22 @@ void app_main(void)
ESP_LOGW(TAG, "RFID unavailable (%s) - continuing without card scanning", esp_err_to_name(ret));
}
ESP_ERROR_CHECK(wifi_manager_init());
ESP_ERROR_CHECK(wifi_manager_start());
ESP_ERROR_CHECK(scryfall_client_start());
ESP_ERROR_CHECK(web_server_start());
/* Networking is not fatal either: without it the device runs offline
* (cached cards + AP pairing). Init failures are logged, boot continues. */
ret = wifi_manager_init();
if (ret != ESP_OK) {
ESP_LOGW(TAG, "wifi init failed (%s) - continuing offline", esp_err_to_name(ret));
} else {
if (wifi_manager_start() != ESP_OK) {
ESP_LOGW(TAG, "wifi start failed - continuing offline");
}
if (scryfall_client_start() != ESP_OK) {
ESP_LOGW(TAG, "scryfall client start failed");
}
}
if (web_server_start() != ESP_OK) {
ESP_LOGW(TAG, "web server start failed - continuing without AP");
}
ESP_ERROR_CHECK(ui_task_start());