FastLED 3.9.15
Loading...
Searching...
No Matches

◆ autoReset()

void autoReset ( )

Definition at line 70 of file ServerReal.h.

70 {
71 // Auto-reset flash states to RUNNING after 200ms
72 if ((state == REQUEST_RECEIVED || state == RESPONDED) &&
73 (fl::millis() - lastEventTime > 200)) {
74 state = RUNNING;
75 }
76}
TestState state
fl::u32 lastEventTime
Definition ServerReal.h:48
@ RUNNING
Definition ServerReal.h:41
@ REQUEST_RECEIVED
Definition ServerReal.h:42
@ RESPONDED
Definition ServerReal.h:43
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.

References lastEventTime, fl::millis(), REQUEST_RECEIVED, RESPONDED, RUNNING, and state.

Referenced by loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: