Commit e73aaa8a authored by Gaia Grosso's avatar Gaia Grosso
Browse files

Update main.py

parent 16fae0d0
......@@ -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:
......
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