Fix bug testing weather method

This commit is contained in:
Samer Albahra
2015-04-12 21:28:32 -05:00
parent 1a5bc1e0c0
commit 8a343c464a

View File

@@ -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):