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

Function send_model_command

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

Source from the content-addressed store, hash-verified

6
7
8def send_model_command(args):
9 dbg_print("======== SEND SET MODEL 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 TelemSeq = bootloader.get_model_seq(args.model)
14 s.write(TelemSeq)
15 s.flush()
16 time.sleep(.5)
17 s.close()
18
19
20if __name__ == '__main__':

Callers 1

set_model.pyFile · 0.85

Calls 3

dbg_printFunction · 0.70
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected