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

Function init_passthrough

src/python/BFinitPassthrough.py:149–155  ·  view source on GitHub ↗
(source, target, env)

Source from the content-addressed store, hash-verified

147 return ElrsUploadResult.Success
148
149def init_passthrough(source, target, env) -> int:
150 env.AutodetectUploadPort([env])
151 try:
152 bf_passthrough_init(env['UPLOAD_PORT'], env['UPLOAD_SPEED'])
153 except PassthroughEnabled as err:
154 dbg_print(str(err))
155 return reset_to_bootloader(env['UPLOAD_PORT'], env['UPLOAD_SPEED'], env['PIOENV'], source[0])
156
157def main(custom_args = None):
158 parser = argparse.ArgumentParser(

Callers

nothing calls this directly

Calls 3

bf_passthrough_initFunction · 0.85
reset_to_bootloaderFunction · 0.85
dbg_printFunction · 0.70

Tested by

no test coverage detected