From 8a343c464ac135d6f28ab42bdc4fcebedd9fba36 Mon Sep 17 00:00:00 2001 From: Samer Albahra Date: Sun, 12 Apr 2015 21:28:32 -0500 Subject: [PATCH] Fix bug testing weather method --- application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application.py b/application.py index 0b7b33c..6b28be9 100644 --- a/application.py +++ b/application.py @@ -195,7 +195,7 @@ def application(environ, start_response): if v: h_today = safe_float(v, h_today) - if (uwt === 1): + if ((uwt & ~(1 << 7)) == 1): # calculate water time scale, per https://github.com/rszimm/sprinklers_pi/blob/master/Weather.cpp hf = 0 if (maxh>=0) and (minh>=0):