From a95f4b3745481ca38520dc2310a68550dd4b46a5 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 14 Jul 2020 15:46:32 +0200 Subject: [PATCH] chg: check buttonpress --- armsrc/iso15693.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index c12e2837b..ff59d260a 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -1066,16 +1066,16 @@ int GetIso15693CommandFromReader(uint8_t *received, size_t max_len, uint32_t *eo samples++; } - if (gotFrame) { - break; - } - if (BUTTON_PRESS()) { DecodeReader.byteCount = -1; break; } WDT_HIT(); + + if (gotFrame) { + break; + } } FpgaDisableSscDma();