1
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:
Evgeny E
2025-03-12 13:25:37 +00:00
committed by GitHub
parent cef20b3a5e
commit 9a8dcc340f

View File

@@ -37,15 +37,13 @@ class Main(App):
self.logger.info(f"Attempting to find flipper with {retry_count} attempts.")
for i in range(retry_count):
time.sleep(1)
self.logger.info(f"Attempt to find flipper #{i}.")
if port := resolve_port(self.logger, self.args.port):
self.logger.info(f"Found flipper at {port}")
time.sleep(1)
break
time.sleep(1)
if not port:
self.logger.info(f"Failed to find flipper {port}")
return None