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
919ed05d
Commit
919ed05d
authored
Mar 09, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a typo
parent
1afc5717
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
x393sata_control.py
py393sata/x393sata_control.py
+9
-9
No files found.
py393sata/x393sata_control.py
View file @
919ed05d
...
@@ -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"
)
...
...
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