(source, target, env)
| 147 | return ElrsUploadResult.Success |
| 148 | |
| 149 | def 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 | |
| 157 | def main(custom_args = None): |
| 158 | parser = argparse.ArgumentParser( |
nothing calls this directly
no test coverage detected