altosui: Work around lack of actual USB product names on Windows
authorKeith Packard <keithp@keithp.com>
Wed, 30 Sep 2020 05:02:56 +0000 (22:02 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 30 Sep 2020 05:07:22 +0000 (22:07 -0700)
commit67e8e9b5b51e259eda4a669de527111851bab78f
treec6c5fd621fcf899f5671c3ba7d2b844ba190e84e
parent9bee7d9b6be861909d8c89767f6eabf007f76612
altosui: Work around lack of actual USB product names on Windows

Windows doesn't provide an API to get the USB product name for
attached devices, it only provides the name listed in the .inf file
for each vid/pid. This means that you get 'TeleMega', or 'TeleMega
can't isolate the list to the correct version.

With this fix, at least the '#2' is stripped off, and the matching
code restricts itself to showing only TeleMega files instead of all
filenames starting with 'tele'.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosFlashUI.java
libaltos/libaltos_windows.c