MCPcopy Create free account
hub / github.com/ExpressLRS/ExpressLRS / send_bind_command

Function send_bind_command

src/python/bind.py:8–18  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

6
7
8def 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
21if __name__ == '__main__':

Callers 1

bind.pyFile · 0.85

Calls 3

dbg_printFunction · 0.70
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected