Commit 3f050386 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

minor

parent 8a65a933
...@@ -170,8 +170,9 @@ def reset_device(): ...@@ -170,8 +170,9 @@ def reset_device():
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()
sata.reset_device()
sleep(0.5) sleep(0.5)
sata.reset_device()
sleep(1)
else: else:
if i!=0: if i!=0:
log_msg("resetting device: success") log_msg("resetting device: success")
...@@ -294,8 +295,9 @@ def reload_driver(): ...@@ -294,8 +295,9 @@ def reload_driver():
unload_ahci_elphel_driver() unload_ahci_elphel_driver()
# check once # check once
sata.reset_ie() sata.reset_ie()
sata.reset_device()
sleep(0.5) sleep(0.5)
sata.reset_device()
sleep(1)
connection_errors() connection_errors()
load_ahci_elphel_driver() load_ahci_elphel_driver()
......
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