Clarify comment on copying usbsn

This commit is contained in:
Stefan Rueger 2023-01-02 17:10:15 +00:00
parent 0a883973a2
commit 74cbb51ef5
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
2 changed files with 2 additions and 2 deletions

View File

@ -1569,7 +1569,7 @@ int jtag3_open_common(PROGRAMMER *pgm, const char *port) {
pmsg_notice("found CMSIS-DAP compliant device, using EDBG protocol\n");
}
// Copy over pointer to USB serial number function
// Make USB serial number available to programmer
if (serdev && serdev->usbsn)
pgm->usbsn = serdev->usbsn;

View File

@ -1578,7 +1578,7 @@ static int stk500v2_open(PROGRAMMER *pgm, const char *port) {
return -1;
}
// Copy over pointer to USB serial number function
// Make USB serial number available to programmer
if (serdev && serdev->usbsn)
pgm->usbsn = serdev->usbsn;