mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
fix: flipper detected before it was rebooted (#4146)
This commit is contained in:
@@ -37,15 +37,13 @@ class Main(App):
|
|||||||
self.logger.info(f"Attempting to find flipper with {retry_count} attempts.")
|
self.logger.info(f"Attempting to find flipper with {retry_count} attempts.")
|
||||||
|
|
||||||
for i in range(retry_count):
|
for i in range(retry_count):
|
||||||
|
time.sleep(1)
|
||||||
self.logger.info(f"Attempt to find flipper #{i}.")
|
self.logger.info(f"Attempt to find flipper #{i}.")
|
||||||
|
|
||||||
if port := resolve_port(self.logger, self.args.port):
|
if port := resolve_port(self.logger, self.args.port):
|
||||||
self.logger.info(f"Found flipper at {port}")
|
self.logger.info(f"Found flipper at {port}")
|
||||||
time.sleep(1)
|
|
||||||
break
|
break
|
||||||
|
|
||||||
time.sleep(1)
|
|
||||||
|
|
||||||
if not port:
|
if not port:
|
||||||
self.logger.info(f"Failed to find flipper {port}")
|
self.logger.info(f"Failed to find flipper {port}")
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user