summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdrcontrol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/drcontrol.py b/drcontrol.py
index 63c10ab..ba8a1e6 100755
--- a/drcontrol.py
+++ b/drcontrol.py
@@ -144,9 +144,9 @@ def set_relay():
try:
with BitBangDevice(cmdarg.device) as bb:
-
+
# Action towards specific relay
- if cmdarg.relay >= 1 and cmdarg.relay <= 8:
+ if int(cmdarg.relay) >= 1 and int(cmdarg.relay) <= 8:
# Turn relay ON
if cmdarg.command == "on":
OpenPOWER on IntegriCloud