ao-tools: Add lots of compiler warning flags to ao-tools build
[fw/altos] / ao-tools / ao-dbg / ao-dbg-parse.c
index 825d0e9c74972d72bf809ed69c0d42e0624af89f..ba69183431c823f508bb318afff89c291ee77abc 100644 (file)
@@ -195,6 +195,11 @@ command_read (void)
        enum command_result result;
        struct command_function *func;
 
+       if (!s51_tty) {
+               if (!s51_device)
+                       s51_device = getenv("AO_DBG_DEVICE");
+               s51_tty = cc_usbdevs_find_by_arg(s51_device, "TeleDongle");
+       }
        s51_dbg = ccdbg_open (s51_tty);
        if (!s51_dbg)
                exit(1);