Small debug fix

This commit is contained in:
Pol Henarejos 2022-08-30 17:48:25 +02:00
parent 93ac6c2128
commit 2f565f23e0
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -105,7 +105,7 @@ uint8_t ccid_status = 1;
static uint8_t itf_num;
void ccid_write_offset(uint16_t size, uint16_t offset) {
if (*usb_get_tx() != 0x81)
if (*usb_get_tx()+offset != 0x81)
DEBUG_PAYLOAD(usb_get_tx()+offset,size+10);
usb_write_offset(size+10, offset);
}