'Fix' writing on hitag2 in password mode

Needs more investigation, but it does solve the issue of write commands not working consistently
This commit is contained in:
0xdanneh 2023-05-08 20:48:41 +01:00
commit dadaf9cd11

View file

@ -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;
}