Commit 094b766e authored by Jens Krüger's avatar Jens Krüger Committed by Jens Krueger
Browse files

CAEN/HV: Fix comparision between string and int

Change-Id: I39f7f8e43ac340c6a18cf6c47c288eb92db068cc
Reviewed-on: https://forge.frm2.tum.de/review/c/frm2/tango/entangle/+/26485

Tested-by: default avatarJenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
Reviewed-by: default avatarJens Krueger <jens.krueger@frm2.tum.de>
parent 72df5c87
......@@ -210,7 +210,7 @@ class PowerSupply(base.PowerSupply):
values = ''
if val:
value = val[0]
if value < 0:
if not isinstance(value, str) and value < 0:
value = abs(value)
values = VALUE + str(value)
reply = self._iodev.Communicate(
......
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