Small change to rain delay code.

This commit is contained in:
Dan-in-CA 2013-10-16 12:08:12 -07:00
parent 9ecc28dc91
commit 41b5b83ee9
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ class change_values:
gv.srvals = [0]*(gv.sd['nst']) # turn off all stations
set_output()
if qdict.has_key('mm') and qdict['mm'] == '0': clear_mm()
if qdict.has_key('rd') and qdict['rd'] != '0' and qdict['rd'] != '':
if qdict.has_key('rd') and qdict['rd'] > '0':
gv.sd['rdst'] = (gv.now+(int(qdict['rd'])*3600))
stop_onrain()
elif qdict.has_key('rd') and qdict['rd'] == '0': gv.sd['rdst'] = 0