From 21997a1d8590719d56487dd7e05fc842fdeabadd Mon Sep 17 00:00:00 2001 From: Martin Kompf Date: Fri, 15 Feb 2019 18:56:48 +0100 Subject: [PATCH] Ensure that trigger mode is set --- wairc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wairc.py b/wairc.py index 8fc92c5..c29ceac 100755 --- a/wairc.py +++ b/wairc.py @@ -94,6 +94,9 @@ def main(): if not ser.isOpen(): print "Unable to open serial port %s" % port sys.exit(1) + # set trigger mode + ser.write(b'C\r\n') + ser.write(b'T\r\n') trigger_state = 0 counter = last_rrd_count()