- Joined
- Apr 4, 2021
- Messages
- 1,000
- Reaction score
- 1,102
- Review score
- +0 /0 /-0
- Location
- United Kingdom
The code that I posted here has a choice of 3, 4, or 5 hard-coded choices for running tests on schedule. Each will start on the 20th minute of the hour and will run with either 6 hours, 4 hours or 3 hours interval.But let me ask you one thing.
Doesn't this have a schedule function?
if(last_hour_checked!=h && !DEBUG_MODE)//check if alk monitor needs to be run
{
if(m==20)
{
last_hour_checked = h;
if(
((h==6 || h == 12 || h==18) && schedule_tests_per_day==3)
||
((h==6 || h == 10 || h==14 || h==18) && schedule_tests_per_day==4)
||
((h==6 || h == 9 || h==12 || h==15 || h==18) && schedule_tests_per_day==5)
)
{
runAlkalinityTest();
}
}
}