Skip to content
Snippets Groups Projects
Commit 21704a25 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix(init):Fix data parse in regconfig file

* Parse every data in uint32
parent 457f4927
No related branches found
No related tags found
No related merge requests found
......@@ -105,8 +105,8 @@ def ApplyConfig(dev, config):
for k, v in config.items():
try:
acc = dev.getScalarRegisterAccessor(np.int32, k)
acc.set(np.asarray([v], dtype=np.int32))
acc = dev.getScalarRegisterAccessor(np.uint32, k)
acc.set(np.asarray([v], dtype=np.uint32))
acc.write()
except:
logger.error("Could not apply value {} to {}".format(v,k))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment