mirror of https://github.com/noisymime/OSPi.git
Small change to rain delay code.
This commit is contained in:
parent
9ecc28dc91
commit
41b5b83ee9
2
ospi.py
2
ospi.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue