|
|
|
|
|
|
|
|
if (_state != TimerOff) end(); |
|
|
if (_state != TimerOff) end(); |
|
|
if (!milliseconds) return; |
|
|
if (!milliseconds) return; |
|
|
_event = &event; |
|
|
_event = &event; |
|
|
_ms = milliseconds; |
|
|
|
|
|
|
|
|
_ms = (milliseconds > 2)? milliseconds-2 : 0; |
|
|
_reload = 0; |
|
|
_reload = 0; |
|
|
addToWaitingList(); |
|
|
addToWaitingList(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (_state != TimerOff) end(); |
|
|
if (_state != TimerOff) end(); |
|
|
if (!milliseconds) return; |
|
|
if (!milliseconds) return; |
|
|
_event = &event; |
|
|
_event = &event; |
|
|
_ms = milliseconds; |
|
|
|
|
|
|
|
|
_ms = (milliseconds > 2)? milliseconds-2 : 0; |
|
|
_reload = milliseconds; |
|
|
_reload = milliseconds; |
|
|
addToWaitingList(); |
|
|
addToWaitingList(); |
|
|
} |
|
|
} |