Recognizable serial name and disk label #49
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The serial name of bus pirate on Mac systems is not so recognizable. Therefore I change the serial names from
/dev/tty.usbmodem0123456789121
and/dev/tty.usbmodem0123456789123
to/dev/tty.usbmodem5buspirate1
and/dev/tty.usbmodem5buspirate3
respectively.I haven't manage to figure out what sets the numbers at the end of the name, Ideally I want the names to be like "buspirate5_terminal" and "buspirate5_binmode" so it would be easy to understand.
In addition, the onboard storage is always shown as "NO LABEL" on the host system, so I changed the flash format function to also set the disk label, and added a command to set the disk label so users could avoid reformatting there flash chip.