tdc/test: fix bug in python test program

The program didn't change the timestamp threshold due to an error.
Signed-off-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsalvez <siglesias@igalia.com>
parent 340bc680
......@@ -173,7 +173,7 @@ class Cli(cmd.Cmd):
print val
else:
val = c_uint32(int(arg))
if (val < 0) or (val > 127):
if (val > c_ulong(127)):
print "wrong timestamp value. Valid values [0-127]"
return
self.libtdc.tdc_set_timestamp_threshold(self.tdc, val)
......
Markdown is supported
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