Merge pull request #1983 from 0xdanneh/hitag2-password-write-timing

'Fix' writing on hitag2 in password mode
This commit is contained in:
Iceman 2023-05-23 12:37:08 +02:00 committed by GitHub
commit 9579f2193d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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