Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scouting-demonstrator
SCONE
Commits
e73aaa8a
Commit
e73aaa8a
authored
Dec 10, 2020
by
Gaia Grosso
Browse files
Update main.py
parent
16fae0d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
e73aaa8a
...
...
@@ -82,7 +82,10 @@ def WriteProperty(device, location, offset, width, write_value, verbose=False):
print
(
"An error occured while executing C function write_bits."
)
return
-
1
# Readback as checkout
read_value_new
=
ctypes
.
c_uint
(
reg
.
read_bits
(
device
,
location
)).
value
isReadcheck
=
ctypes
.
c_uint
(
reg
.
read_bits
(
device
,
location
,
ctypes
.
byref
(
read_value
))).
value
if
isReadcheck
==
-
1
:
print
(
"An error occured while executing C function read_bits"
)
return
-
1
if
read_value_new
==
output
:
return
0
else
:
...
...
Write
Preview
Supports
Markdown
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