From 488624bfceea48caab2ec6ccc5d491fe493a77cb Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Thu, 18 Feb 2016 17:20:56 +0000 Subject: [PATCH] flow_control: more documentation --- src/tools/flow_control.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/flow_control.py b/src/tools/flow_control.py index 0eb26fc..08eec97 100755 --- a/src/tools/flow_control.py +++ b/src/tools/flow_control.py @@ -187,6 +187,9 @@ class Flow: if __name__ == "__main__": + """ + This is the command line program to control the red-y flow control series. + """ conf = os.path.expanduser('~/.flow') if os.path.exists(conf): dev = open(conf).readlines()[0].strip() @@ -201,6 +204,7 @@ if __name__ == "__main__": print "Current Temperature: %6.2f C" % (redy.get_var("temperature")) print "Alarm: %8i" % (redy.get_var("alarm")) print "HW Error: %8i" % (redy.get_var("hwerror")) + if len(sys.argv) > 1: try: float(sys.argv[1])