Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393_sata
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393_sata
Commits
3f050386
Commit
3f050386
authored
May 12, 2020
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor
parent
8a65a933
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
x393sata_control.py
py393sata/x393sata_control.py
+4
-2
No files found.
py393sata/x393sata_control.py
View file @
3f050386
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment