def cmdTty(args): assert args.device_index != None # you must pass it m3List = UsbHelper.getOrderedM3List() info = m3List[-1-args.device_index] ttyName = "/dev/%s" % info["port"] subprocess.check_call(["miniterm.py", ttyName, "500000"])
def cmdTty(args): assert args.device_index != None # you must pass it m3List = UsbHelper.getOrderedM3List() info = m3List[-1 - args.device_index] ttyName = "/dev/%s" % info["port"] subprocess.check_call(["miniterm.py", ttyName, "500000"])
def cmdPrintTty(args): assert args.device_index != None # you must pass it m3List = UsbHelper.getOrderedM3List() info = m3List[-1-args.device_index] print "/dev/%s"%info["port"]
def cmdPrintTty(args): assert args.device_index != None # you must pass it m3List = UsbHelper.getOrderedM3List() info = m3List[-1 - args.device_index] print "/dev/%s" % info["port"]