mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-05-27 15:46:16 +00:00
cosmetic
This commit is contained in:
@@ -188,7 +188,7 @@ static void pn533_fix_usbdesc(nfc_device *pnd)
|
||||
#define MAXSZXRAMUSBDESC 61
|
||||
if ((szXramUsbDesc == 0) || (MAXSZXRAMUSBDESC > 61))
|
||||
return;
|
||||
/*
|
||||
#if 0
|
||||
// Debug routine to check if corruption occurred:
|
||||
// Don't read more regs at once or it will trigger the bug and corrupt what we're busy reading!
|
||||
uint8_t abtCmdRR[] = { ReadRegister, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
@@ -209,7 +209,7 @@ static void pn533_fix_usbdesc(nfc_device *pnd)
|
||||
j++;
|
||||
}
|
||||
}
|
||||
*/
|
||||
#endif
|
||||
// Abuse the overflow bug to restore USB descriptors in one go
|
||||
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_INFO, "%s", "Fixing USB descriptors corruption");
|
||||
uint8_t abtCmdWR[19 + MAXSZXRAMUSBDESC] = { GetFirmwareVersion };
|
||||
|
||||
Reference in New Issue
Block a user