(self)
| 80 | self.link.close() |
| 81 | |
| 82 | def scan_for_bootloader(self): |
| 83 | link = cflib.crtp.get_link_driver('radio://0') |
| 84 | ts = time.time() |
| 85 | res = () |
| 86 | while len(res) == 0 and (time.time() - ts) < 10: |
| 87 | res = link.scan_selected(self._available_boot_uri) |
| 88 | |
| 89 | link.close() |
| 90 | |
| 91 | if len(res) > 0: |
| 92 | return res[0] |
| 93 | return None |
| 94 | |
| 95 | def reset_to_bootloader(self, target_id): |
| 96 | retry_counter = 5 |
no test coverage detected