Commit 4db10568 authored by Gaia Grosso's avatar Gaia Grosso
Browse files

add line 113-114

parent 8c9107d2
......@@ -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.')
......
Supports Markdown
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