OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Required Interval Duration › Re: Re: Required Interval Duration
June 20, 2013 at 7:36 pm
#24523
Ray
Keymaster
Ah, that’s a good suggestion and should be easy to address. The reason it does not allow 0 interval time is that the algorithm checks time match by computing:
if ((current_time – program_start_time) % interval_time == 0)
and a 0 interval_time would be invalid. But this can be easily addressed by adding a if statement before the checking to see if interval_time = 0.
I am actually surprised that you can set interval_time to 0: the Javascripts should check the validity of each parameter. Maybe I forgot to check this parameter…