ao-tools: Fix warnings in ao-tools None of these appear likely to have caused actual problems. Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-list: Show devices that have no TTY chaoskey doesn't advertise itself as a modem, so the kernel doesn't allocate a tty device. Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools: Make library support µPusb Set baud rate to 9600, look for FTDI-style names Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools: ao-list was crashing with more than 3 devices connected the list of devices was getting realloced for each new device, but that realloc was too small. Signed-off-by: Keith Packard <keithp@keithp.com>
Allow product names to have suffixes (like board revisions) When looking for a board by product name, just look at the prefix of the name instead of requiring an exact match. This will allow products to have board version suffixes. Signed-off-by: Keith Packard <keithp@keithp.com>
Parse the USB serial number as an integer. AltOS devices use simple integer serial numbers, so parse the USB value as such to make matching values more forgiving. Signed-off-by: Keith Packard <keithp@keithp.com>
Move usb scanning code to ao-tools library This will allow the scanning code to be used by the command line tools as well as the ao-view GUI. Now that ao-view depends on the ao-tools library, it has been moved to the ao-tools directory as well. Signed-off-by: Keith Packard <keithp@keithp.com>