From: Robin Krens Date: Wed, 14 Feb 2024 14:44:50 +0000 (+0100) Subject: RAConnect.py: remove unused func X-Git-Tag: v0.0.1~21 X-Git-Url: https://robinkrens.nl/gitweb/?a=commitdiff_plain;h=3833e7316982bc120c7d9744e69d7719c04edd6d;p=renesas-ra-flasher RAConnect.py: remove unused func --- 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: