diff --git a/src/tempus/Tempus.py b/src/tempus/Tempus.py index 7ce05fbe8f4f5de8a90ca4b2bfd3e7a3977d0fc8..d7fd9a8f531e657402bc01c26050c17ad5c5739b 100644 --- a/src/tempus/Tempus.py +++ b/src/tempus/Tempus.py @@ -341,9 +341,12 @@ class Tempus(Device): async def _reset_fast_links(self, initial_state): try: if not self.enableMultiLink: + + link_speed = 1 # 1 -> 2.56Gbit / 2 -> 1.28 Gbit + link_result = await self.send_command( f"os.system('{self.APP_DIR}/sc_set_gwt_link_up.py -i 0x0 " - "-l 0x0 -s 0x2')", sleep_time=15) + f"-l 0x0 -s 0x{link_speed:.0f}')", sleep_time=15) if "is Down" in link_result: self.LinkStateBottom1 = State.ERROR elif "is READY" in link_result: @@ -353,7 +356,7 @@ class Tempus(Device): link_result = await self.send_command( f"os.system('{self.APP_DIR}/sc_set_gwt_link_up.py -i 0x1 " - "-l 0x0 -s 0x2')", sleep_time=15) + f"-l 0x0 -s 0x{link_speed:.0f}')", sleep_time=15) if "is Down" in link_result: self.LinkStateTop1 = State.ERROR elif "is READY" in link_result: