Disable monitor mode when communicating via usb
authorKeith Packard <keithp@keithp.com>
Sun, 14 Jun 2009 23:36:29 +0000 (16:36 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 14 Jun 2009 23:36:29 +0000 (16:36 -0700)
cctools/lib/cc-usb.c

index dc764c24e99f79fd326226cbb8f795063ab58340..7eedbb473c0d83053118ec18094dad4466aecba5 100644 (file)
@@ -343,7 +343,7 @@ cc_usb_open(char *tty)
        save_termios = termios;
        cfmakeraw(&termios);
        tcsetattr(cc->fd, TCSAFLUSH, &termios);
        save_termios = termios;
        cfmakeraw(&termios);
        tcsetattr(cc->fd, TCSAFLUSH, &termios);
-       cc_usb_printf(cc, "E 0\n");
+       cc_usb_printf(cc, "E 0\nm 0\n");
        cc_usb_sync(cc);
        sleep(1);
        cc_usb_sync(cc);
        cc_usb_sync(cc);
        sleep(1);
        cc_usb_sync(cc);