32 pinMode(fRelayPin, OUTPUT);
33 digitalWrite(fRelayPin, LOW);
42 uint32_t currentTime = millis();
43 if (fNextTime < currentTime)
45 digitalWrite(fRelayPin, HIGH);
46 fCutOffTime = (switchOffMS != 0) ? currentTime + switchOffMS : 0;
47 fNextTime = (fPauseTime != 0) ? currentTime + fPauseTime : 0;
60 digitalWrite(fRelayPin, LOW);
71 if (fCutOffTime < millis())
78 static const uint32_t MAXIMUM_TIME = 6500L;