From 9c8b1b1f0a680fefb6ac0100a602e31a8a3999c4 Mon Sep 17 00:00:00 2001 From: Chris Krause Date: Wed, 11 Dec 2024 13:08:20 +1100 Subject: [PATCH] removed extra func --- scripts/firmware.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/firmware.py b/scripts/firmware.py index c5c7225..1082886 100755 --- a/scripts/firmware.py +++ b/scripts/firmware.py @@ -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") @@ -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