diff options
author | Keith Packard <keithp@keithp.com> | 2009-08-18 12:19:31 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-08-18 14:39:15 -0700 |
commit | 9b03d620722dc54630539afba40720c30de69b2d (patch) | |
tree | 49450794239dfcfaab32190ccb7c81e2e71c2bbc /ao-tools/lib/cp-usb-async.c | |
parent | 7c790fe859dff062692964338091ffbbcdf63257 (diff) |
Use --tty/-T on command line to specify target device
Also, use the ALTOS_TTY environment variable in all tools. Note that
the magic value of "BITBANG" switches the library to connecting
through a CP2103 instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/lib/cp-usb-async.c')
-rw-r--r-- | ao-tools/lib/cp-usb-async.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ao-tools/lib/cp-usb-async.c b/ao-tools/lib/cp-usb-async.c index 6539394b..3e75b507 100644 --- a/ao-tools/lib/cp-usb-async.c +++ b/ao-tools/lib/cp-usb-async.c @@ -60,6 +60,7 @@ cp_usb_async_open(void) 0x10c4, 0xea60); cp->ack = -1; if (!cp->handle) { + fprintf(stderr, "Cannot find USB device 10c4:ea60\n"); libusb_exit(cp->ctx); free(cp); return NULL; |