Commit 919ed05d authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed a typo

parent 1afc5717
...@@ -90,7 +90,7 @@ def connection_errors(): ...@@ -90,7 +90,7 @@ def connection_errors():
def reset_device(): def reset_device():
result = False result = False
for i in range(reset_limit): for i in range(RESET_LIMIT):
if not connection_errors(): if not connection_errors():
log_msg("connection error ("+str(i)+"), resetting device",4) log_msg("connection error ("+str(i)+"), resetting device",4)
sata.reset_ie() sata.reset_ie()
...@@ -115,21 +115,21 @@ else: ...@@ -115,21 +115,21 @@ else:
if cmd == "set_zynq_ssd": if cmd == "set_zynq_ssd":
sata.vsc3304.disconnect_all() #sata.vsc3304.disconnect_all()
sata.set_zynq_ssd() sata.set_zynq_ssd()
reset_device() #reset_device()
elif cmd == "set_zynq_esata": elif cmd == "set_zynq_esata":
sata.vsc3304.disconnect_all() #sata.vsc3304.disconnect_all()
sata.set_zynq_esata() sata.set_zynq_esata()
reset_device() #reset_device()
elif cmd == "set_zynq_ssata": elif cmd == "set_zynq_ssata":
sata.vsc3304.disconnect_all() #sata.vsc3304.disconnect_all()
sata.set_zynq_ssata() sata.set_zynq_ssata()
reset_device() #reset_device()
elif cmd == "set_esata_ssd": elif cmd == "set_esata_ssd":
sata.vsc3304.disconnect_all() #sata.vsc3304.disconnect_all()
sata.set_esata_ssd() sata.set_esata_ssd()
reset_device() #reset_device()
else: else:
print("Usage:") print("Usage:")
print(" * camera <-> internal SSD : x393sata_control.py set_zynq_ssd") print(" * camera <-> internal SSD : x393sata_control.py set_zynq_ssd")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment