Improved NFC reading speed
This commit is contained in:
@@ -87,9 +87,7 @@ impl Navigable for ScanMenu {
|
||||
|
||||
fn handle_input(&self, input: Action) -> impl core::future::Future<Output = NewState> + Send {
|
||||
async move {
|
||||
log::info!("Scan view detected, checking for NFC card data");
|
||||
if let Some(card_data) = CARD_DATA.lock().await.take() {
|
||||
log::info!("NFC Card to be displayed: {:?}", card_data);
|
||||
NewState {
|
||||
view: View::Card(crate::views::card_view::CardView { card: card_data }),
|
||||
replace_view: true,
|
||||
|
||||
Reference in New Issue
Block a user