From 594e4fe169968cb44a72bedb858b6f3884eafa01 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 12 Dec 2017 15:49:43 +0100 Subject: [PATCH] fix: (@pwpivi) https://github.com/Proxmark/proxmark3/pull/515/commits/fa85b08504eda7045b4b7d50fee1b75c4f5e5dd2 --- armsrc/iso14443a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 8c802682c..da0dcdbea 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -119,12 +119,12 @@ void iso14a_set_trigger(bool enable) { } void iso14a_set_timeout(uint32_t timeout) { - iso14a_timeout = timeout - (DELAY_AIR2ARM_AS_READER + DELAY_ARM2AIR_AS_READER)/(16*8) + 2; + iso14a_timeout = timeout + (DELAY_AIR2ARM_AS_READER + DELAY_ARM2AIR_AS_READER)/(16*8) + 2; //if (MF_DBGLEVEL >= 3) Dbprintf("ISO14443A Timeout set to %ld (%dms)", iso14a_timeout, iso14a_timeout / 106); } uint32_t iso14a_get_timeout(void) { - return iso14a_timeout + (DELAY_AIR2ARM_AS_READER + DELAY_ARM2AIR_AS_READER)/(16*8) + 2; + return iso14a_timeout - (DELAY_AIR2ARM_AS_READER + DELAY_ARM2AIR_AS_READER)/(16*8) - 2; } //-----------------------------------------------------------------------------