Skip to content

Commit

Permalink
Reduce NFC read sleep time for quicker response to id card scans
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed Aug 26, 2024
1 parent 5586d66 commit f5a3daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/src/nfc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const COMMAND_TIMEOUT: Duration = Duration::from_millis(50);
const READ_TIMEOUT: Duration = Duration::from_millis(100);

/// NFC reader read loop sleep
const READ_SLEEP: Duration = Duration::from_millis(900);
const READ_SLEEP: Duration = Duration::from_millis(400);

const PREAMBLE: [u8; 3] = [0x00, 0x00, 0xFF];
const POSTAMBLE: u8 = 0x00;
Expand Down

0 comments on commit f5a3daa

Please sign in to comment.