nfc read: print error instead of panic on invalid data
This commit is contained in:
@@ -109,6 +109,8 @@ async fn main(spawner: Spawner) {
|
|||||||
|
|
||||||
let store = Store::new(peripherals.FLASH).expect("Could not initialize Flash Store");
|
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 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;
|
//setup_wifi(peripherals.WIFI, peripherals.FLASH, &spawner).await;
|
||||||
|
|
||||||
let mut nfc_driver = NfcPn532Driver::new(AtomicDevice::new(shared_i2c));
|
let mut nfc_driver = NfcPn532Driver::new(AtomicDevice::new(shared_i2c));
|
||||||
|
|||||||
Reference in New Issue
Block a user