summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebastian.sjoholm <sebastian.sjoholm@gmail.com>2012-12-28 10:37:04 +0000
committersebastian.sjoholm <sebastian.sjoholm@gmail.com>2012-12-28 10:37:04 +0000
commit4aa69da94a77d4d7db9fbe0f2c9ff29daff61e23 (patch)
tree7dc5fe54f38b038257373b47275f60aec2c44e40
parent84a0e590dc7d354bd92ccce1d0a5e1a1685499a2 (diff)
downloaddrcontrol-4aa69da94a77d4d7db9fbe0f2c9ff29daff61e23.zip
drcontrol-4aa69da94a77d4d7db9fbe0f2c9ff29daff61e23.tar.gz
-rwxr-xr-xdrcontrol.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/drcontrol.py b/drcontrol.py
index 2395538..135cbc0 100755
--- a/drcontrol.py
+++ b/drcontrol.py
@@ -110,7 +110,7 @@ def set_relay():
if cmdarg.verbose:
print "Device: " + cmdarg.device
- print "Command: Set relay " + cmdarg.relay + " (0x" + relay.address[cmdarg.relay] + ") to " + cmdarg.state
+ print "Command: Set relay " + cmdarg.relay + " (0x" + relay.address[cmdarg.relay] + ") to " + cmdarg.state.upper()
try:
with BitBangDevice(cmdarg.device) as bb:
@@ -120,11 +120,11 @@ def set_relay():
if cmdarg.state == "on":
if cmdarg.verbose:
- print "Set relay " + str(cmdarg.relay) + " to ON"
+ print "Relay " + str(cmdarg.relay) + " to ON"
bb.port |= int(relay.address[cmdarg.relay], 16)
elif cmdarg.state == "off":
if cmdarg.verbose:
- print "Set relay " + str(cmdarg.relay) + " to OFF"
+ print "Relay " + str(cmdarg.relay) + " to OFF"
bb.port &= ~int(relay.address[cmdarg.relay], 16)
if cmdarg.verbose:
OpenPOWER on IntegriCloud