Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #973: Differentiate multiple USB programmers of the same VID/PI… #1588

Merged
merged 4 commits into from
Dec 18, 2023

Commits on Dec 4, 2023

  1. Issue avrdudes#973: Differentiate multiple USB programmers of the sam…

    …e VID/PID (libusb or hidapi or libftdi)
    
    Added code for USBasp to check for bus:device match using the -P option. Syntax is -P usb:<bus>:<device> (same as current USBTiny implementation).
    
    This also supports serial number check with the alternative -P usb:<serial_number> format (no ':').
    
    In verbose mode, prints out bus/device/serial number for any found USBasps.
    
    Only tested on Linux, but it works with HAVE_LIBUSB_1_0 on or off (there's some slightly different code in the two versions of usbOpenDevice()).
    MikeRaffa committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    447b176 View commit details
    Browse the repository at this point in the history
  2. Updates based on feedback from stefanrueger.

    Change sense of check_for_port_argument_match() to return nonzero when there is a match.
    
    Increase size of 'bus_num' and 'dev_addr' from 4 to 21.
    
    Various cleanup, formatting changes, and simplifications.
    
    Match trailing end of serial numbers.
    MikeRaffa committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    fa2e69d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e351dc3 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2023

  1. Remove check for 'verbose' on call to pmsg_notice().

    Remove some unnecessary braces and parens.
    MikeRaffa committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    5dbbb4e View commit details
    Browse the repository at this point in the history