From ed86e88980342fe3f5d51f843244b10ecf75dd96 Mon Sep 17 00:00:00 2001 From: rhetenor Date: Wed, 26 Aug 2026 20:54:03 +0000 Subject: [PATCH] nfc read: print error instead of panic on invalid data --- src/bin/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/main.rs b/src/bin/main.rs index 436a76d..0570d85 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -109,6 +109,8 @@ async fn main(spawner: Spawner) { let store = Store::new(peripherals.FLASH).expect("Could not initialize Flash Store"); let card_store = CardStore::new(store).expect("Could not initialize Card Store"); + + let rtc = Rtc::new(peripherals.LPWR); //setup_wifi(peripherals.WIFI, peripherals.FLASH, &spawner).await; let mut nfc_driver = NfcPn532Driver::new(AtomicDevice::new(shared_i2c));