From d445ad80cca9091205ed51ecd962a50dc0e3f8cd Mon Sep 17 00:00:00 2001 From: gammlaa Date: Fri, 20 Oct 2017 18:40:10 +0200 Subject: [PATCH] changend status messages from [0|1] to [off|on] --- beamerctl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beamerctl.py b/beamerctl.py index 5eb7840..309b484 100755 --- a/beamerctl.py +++ b/beamerctl.py @@ -60,9 +60,9 @@ def readBeamerState(): ser.write(b"* 0 Lamp ?\r") read_val = ser.read(size=64) if(re.match(b'.*Lamp.1.*', read_val)): - status = 1 + status = "on" else: - status = 0 + status = "off" return status