From 3833e7316982bc120c7d9744e69d7719c04edd6d Mon Sep 17 00:00:00 2001 From: Robin Krens Date: Wed, 14 Feb 2024 15:44:50 +0100 Subject: [PATCH] RAConnect.py: remove unused func --- src/RAConnect.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/RAConnect.py b/src/RAConnect.py index 8405dae..1a1ddec 100644 --- a/src/RAConnect.py +++ b/src/RAConnect.py @@ -56,18 +56,6 @@ class RAConnect: #print("Connection already established") return True - def establish_connection(self): - for i in range(self.max_tries): - try: - self.tx_ep.write(bytes([0x00]), self.timeout_ms) - ret = self.rx_ep.read(1, self.timeout_ms) - if ret[0] == 0x00: - print("Reply ACK received (0x00)") - return True - except usb.core.USBError as e: - print(f"Timeout: retry #{i}", e) - return False - def confirm_connection(self): for i in range(self.max_tries): try: -- 2.7.4