summaryrefslogtreecommitdiffstats
path: root/drcontrol.py
diff options
context:
space:
mode:
Diffstat (limited to 'drcontrol.py')
-rwxr-xr-xdrcontrol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/drcontrol.py b/drcontrol.py
index fea0c42..4eb6034 100755
--- a/drcontrol.py
+++ b/drcontrol.py
@@ -117,7 +117,7 @@ def set_relay():
with BitBangDevice(cmdarg.device) as bb:
if cmdarg.verbose:
- print "Current state: " + bb.port
+ print "Current state: " + str(bb.port)
if cmdarg.state == "on":
bb.port |= int(relay.address[cmdarg.relay], 16)
@@ -125,7 +125,7 @@ def set_relay():
bb.port &= ~int(relay.address[cmdarg.relay], 16)
if cmdarg.verbose:
- print "Current state: " + bb.port
+ print "Current state: " + str(bb.port)
except Exception, err:
print "Error: Problem with device, or device not exists: " + str(err)
OpenPOWER on IntegriCloud