Merge pull request #1977 from net147/hf-mf-sim-reset

hf mf sim: reduce 50ms threshold to 6ms for reset to idle
This commit is contained in:
Iceman 2023-05-05 06:40:15 +02:00 committed by GitHub
commit 16d8bbd05f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -57,6 +57,7 @@ This project uses the changelog in accordance with [keepchangelog](http://keepac
- Now `script run hf_mf_ultimatecard.lua -u` supports 10bytes UID (@alejandro12120)
- Update documentation for installation on macOS with MacPorts (@linuxgemini)
- Added possible Paxton id to hitag2 tag info output
- Changed `hf mf sim` - reduce 50ms threshold to 6ms for reset to idle #1974 (@net147)
## [Nitride.4.16191][2023-01-29]
- Changed `build_all_firmwares.sh` to fit GENERIC 256kb firmware images (@doegox)

View file

@ -2084,8 +2084,8 @@ int EmGetCmd(uint8_t *received, uint16_t *len, uint8_t *par) {
if (timer == 0) {
timer = GetTickCount();
} else {
// 50ms no field --> card to idle state
if (GetTickCountDelta(timer) > 50) {
// 6ms no field --> card to idle state
if (GetTickCountDelta(timer) > 6) {
return 2;
}
}