mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-16 02:31:06 +00:00
Move static usbsn into serdev structure, remove serno access function
This commit is contained in:
@@ -1569,9 +1569,9 @@ int jtag3_open_common(PROGRAMMER *pgm, const char *port) {
|
||||
pmsg_notice("found CMSIS-DAP compliant device, using EDBG protocol\n");
|
||||
}
|
||||
|
||||
// Get USB serial number function if function pointer is present
|
||||
if (serial_serno)
|
||||
pgm->usbsn = serial_serno();
|
||||
// Copy over pointer to USB serial number function
|
||||
if (serdev && serdev->usbsn)
|
||||
pgm->usbsn = serdev->usbsn;
|
||||
|
||||
/*
|
||||
* drain any extraneous input
|
||||
|
||||
Reference in New Issue
Block a user