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:
2026-09-09 21:52:40 +02:00
parent 7599f0e6b2
commit 96d14c0538
6 changed files with 167 additions and 19 deletions

View File

@@ -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));