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

Function read_param

src/python/crsf.py:135–141  ·  view source on GitHub ↗
(s: serial.Serial, param: int, chunk: int)

Source from the content-addressed store, hash-verified

133
134
135def read_param(s: serial.Serial, param: int, chunk: int):
136 print('read_param', param, chunk)
137 global next_chunk, data
138 next_chunk = chunk + 1
139 if chunk == 0:
140 data = b''
141 send(s, 0xc8, b'\x2C\xEC\x80' + bytes([param, chunk]))
142
143
144if __name__ == '__main__':

Callers 2

processFunction · 0.85
crsf.pyFile · 0.85

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected