Update nfc.c

This commit is contained in:
Token2
2024-09-17 10:10:10 +02:00
committed by GitHub
parent f62bd04ea2
commit 6107470559

View File

@@ -157,7 +157,7 @@ rx_init(fido_dev_t *d, unsigned char *buf, size_t count, int ms)
memset(attr, 0, sizeof(*attr)); memset(attr, 0, sizeof(*attr));
if ((n = d->io.read(d->io_handle, f, sizeof(f), ms)) < 2 || if ((n = rx_msg(d, f, sizeof(f), ms, false)) < 2 ||
(f[n - 2] << 8 | f[n - 1]) != SW_NO_ERROR) { (f[n - 2] << 8 | f[n - 1]) != SW_NO_ERROR) {
fido_log_debug("%s: read", __func__); fido_log_debug("%s: read", __func__);
return -1; return -1;