move nfc to background tasks
This commit was merged in pull request #40.
This commit is contained in:
@@ -243,6 +243,7 @@ where
|
||||
Err(e) => {
|
||||
error!("Parsing page failed: {e}");
|
||||
if e.status_code.is_some_and(|e| e.protocol_error) {
|
||||
// After protocol error, all subsequent reads will fail, so we can stop trying to read more pages.
|
||||
return Err("Failed to parse NFC page");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user