mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2026-08-18 04:30:39 +00:00
Move static usbsn into serdev structure, remove serno access function
This commit is contained in:
@@ -1578,9 +1578,9 @@ static int stk500v2_open(PROGRAMMER *pgm, const char *port) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// 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