From 9da30b5bd92390dfe87df79f2b18a2979482d702 Mon Sep 17 00:00:00 2001 From: "sebastian.sjoholm" Date: Fri, 28 Dec 2012 10:30:42 +0000 Subject: --- drcontrol.py | 4 ++-- 1 file 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) -- cgit v1.1