Skip to content
Snippets Groups Projects
Commit aebb921e authored by Björn Senfftleben's avatar Björn Senfftleben
Browse files

fix increase link speed

parent 7f9fbdbb
No related branches found
No related tags found
No related merge requests found
Pipeline #164778 failed
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment