tinygo
tinygo copied to clipboard
all: improve selection of serial ports for flash and monitor
trafficstars
2nd attempt at fixing #3637
This time, I've reworked the code to:
- discover ports so that the separation of 'possible list of ports' and 'previously selected port' is clearer.
- be explicit about how the code works to identify the 'best' port based on user parameters, VID:PID pairs, etc
- made the concept of 'retrying' serial port discovery more explicit
This change needs some time to soak in dev before a release since it affects multiple platforms and is very subject to difference in performance of MCUs and host PCs.
@kenbell now that we are into the next development cycle, what is the status of this PR?