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:
20
main/main.c
20
main/main.c
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user