Skip to content

Commit

Permalink
AND-9232 Add NFC reader delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Mama1emon authored and kozarezvlad committed Nov 27, 2024
1 parent 2dd9d5f commit 4bb2113
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ class NfcReader : CardReader {

override fun forceEnableReaderMode() {
Log.nfc { "forceEnableReaderMode" }
Thread.sleep(FORCE_ENABLE_READER_MODE_DELAY)
listener?.onForceEnableReadingMode()
}

Expand All @@ -225,5 +226,6 @@ class NfcReader : CardReader {
private companion object {
const val ISO_DEP_TIMEOUT_MS = 240_000
const val CONNECTION_DELAY = 100L
const val FORCE_ENABLE_READER_MODE_DELAY = 500L
}
}

0 comments on commit 4bb2113

Please sign in to comment.