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
4db10568
Commit
4db10568
authored
Feb 01, 2021
by
Gaia Grosso
Browse files
add line 113-114
parent
8c9107d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
4db10568
...
...
@@ -110,6 +110,8 @@ if __name__ == '__main__':
width
=
config_dict
[
board
][
"register"
][
reg
][
"width"
]
action
=
args
.
action
value
=
args
.
value
if
not
value
==
'None'
:
value
=
int
(
value
)
verbose
=
args
.
dump
filelog
=
args
.
filelog
output
=
0
...
...
@@ -157,7 +159,7 @@ if __name__ == '__main__':
exit
()
else
:
writevalue
=
ctypes
.
c_uint
(
int
(
value
)
)
#unsigned int (32 bits)
writevalue
=
ctypes
.
c_uint
(
value
)
#unsigned int (32 bits)
output
=
WriteProperty
(
device
,
location
,
offset
,
width
,
writevalue
,
verbose
=
verbose
)
if
output
==
-
1
:
print
(
'The value could not be updated.'
)
...
...
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