summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebastian.sjoholm <sebastian.sjoholm@gmail.com>2012-12-28 10:30:42 +0000
committersebastian.sjoholm <sebastian.sjoholm@gmail.com>2012-12-28 10:30:42 +0000
commit9da30b5bd92390dfe87df79f2b18a2979482d702 (patch)
tree2a22dcde95244950032d86706d7880083847bb15
parentbe6bbfce46e1c5b6a3a9154e7155c28543847af9 (diff)
downloaddrcontrol-9da30b5bd92390dfe87df79f2b18a2979482d702.zip
drcontrol-9da30b5bd92390dfe87df79f2b18a2979482d702.tar.gz
-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