From dadaf9cd11e5eced49d7b97d1398cb1e96e0e334 Mon Sep 17 00:00:00 2001 From: 0xdanneh <126520353+0xdanneh@users.noreply.github.com> Date: Mon, 8 May 2023 20:48:41 +0100 Subject: [PATCH] 'Fix' writing on hitag2 in password mode Needs more investigation, but it does solve the issue of write commands not working consistently --- armsrc/hitag2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/armsrc/hitag2.c b/armsrc/hitag2.c index f5730f14b..90a667105 100644 --- a/armsrc/hitag2.c +++ b/armsrc/hitag2.c @@ -655,6 +655,7 @@ static bool hitag2_password(uint8_t *rx, const size_t rxlen, uint8_t *tx, size_t *txlen = 0; if (bPwd && (bAuthenticating == false) && write) { + SpinDelay(2); if (hitag2_write_page(rx, rxlen, tx, txlen) == false) { return false; }