Skip to content

Commit

Permalink
removed extra func
Browse files Browse the repository at this point in the history
  • Loading branch information
krautech committed Dec 11, 2024
1 parent 7e07fc8 commit 9c8b1b1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -1709,9 +1709,6 @@ def check_dfu_util(self) -> bool:
logging.info("dfu-util is not installed. Please install it and try again.")
return False

def stop_loop(self, detected_devices: List[str]) -> List[str]:
return detected_devices

def dfu_loop(self) -> List[str]:
detected_devices: List[str] = []
print("Press any key to stop...\n")
Expand Down Expand Up @@ -1739,10 +1736,10 @@ def dfu_loop(self) -> List[str]:

# Check for key press with a timeout of 2 seconds
if Utils.is_key_pressed(timeout=2):
return self.stop_loop(detected_devices)
return detected_devices

except KeyboardInterrupt:
return self.stop_loop(detected_devices)
return detected_devices
except Exception as e:
logging.error(f"Error: {e}")
return detected_devices
Expand Down

0 comments on commit 9c8b1b1

Please sign in to comment.