(args)
| 6 | |
| 7 | |
| 8 | def send_bind_command(args): |
| 9 | dbg_print("======== SEND BIND COMMAND ========") |
| 10 | s = serial.Serial(port=args.port, baudrate=args.baud, |
| 11 | bytesize=8, parity='N', stopbits=1, |
| 12 | timeout=1, xonxoff=0, rtscts=0) |
| 13 | BindInitSeq = bootloader.get_bind_seq(args.type) |
| 14 | dbg_print(" * Using full duplex (CRSF)") |
| 15 | s.write(BindInitSeq) |
| 16 | s.flush() |
| 17 | time.sleep(.5) |
| 18 | s.close() |
| 19 | |
| 20 | |
| 21 | if __name__ == '__main__': |