Skip to content

Feat: Usb-instance parameter to flash specific device - #48

Open
F1rrel wants to merge 1 commit into
airvolute:mainfrom
F1rrel:feat/usb-instance-param
Open

Feat: Usb-instance parameter to flash specific device#48
F1rrel wants to merge 1 commit into
airvolute:mainfrom
F1rrel:feat/usb-instance-param

Conversation

@F1rrel

@F1rrel F1rrel commented Aug 1, 2025

Copy link
Copy Markdown

When multiple devices are connected and are in recovery mode, parameter --usb_instance allows to specify which one should be flashed. This allows to flash multiple devices in sequence using a script. How to find usb-instance.

Implemented changes:

  • added parameter --usb_instance or -i
  • changed _remove_identifier to also accept tuple in remove_list, which specifies number of identifiers to be removed (self-counted)
    • added --usb_instance and -i identifiers to be removed together with its value as it does not change the image
    • made global var IDENTIFIER_REMOVE_LIST to make it easier to reuse
  • fixed paths to be inferred from script location instead of from where the script was run
  • changed quit to return value based on success/error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant