Make RFID failure non-fatal (self-test retries, 4MHz clock, diagnostic log), add beginner Wi-Fi guide + RFID troubleshooting to README
This commit is contained in:
11
main/main.c
11
main/main.c
@@ -21,8 +21,13 @@ void app_main(void)
|
||||
ESP_ERROR_CHECK(storage_manager_init());
|
||||
ESP_ERROR_CHECK(display_manager_init());
|
||||
|
||||
ESP_ERROR_CHECK(rfid_manager_init());
|
||||
ESP_ERROR_CHECK(rfid_manager_start());
|
||||
/* RFID is not fatal: the reader may be unpowered, unwired, or a clone
|
||||
* that needs a slower SPI clock. Continue booting so the display, SoftAP
|
||||
* and web pairing all stay usable; scanning is simply unavailable. */
|
||||
esp_err_t ret = rfid_manager_init();
|
||||
if (ret != ESP_OK || rfid_manager_start() != ESP_OK) {
|
||||
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());
|
||||
@@ -31,7 +36,7 @@ void app_main(void)
|
||||
|
||||
ESP_ERROR_CHECK(ui_task_start());
|
||||
|
||||
ESP_LOGI(TAG, "Boot sequence complete. Ready for Phase 7+.");
|
||||
ESP_LOGI(TAG, "Boot sequence complete.");
|
||||
|
||||
while (1) {
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
|
||||
Reference in New Issue
Block a user