init the timer before we try to use it (#3205)
* init the timer before we try to use it * format * guard
This commit is contained in:
parent
0b3ef5f553
commit
98a98e920d
|
@ -36,6 +36,10 @@ public:
|
||||||
* This invokes PeriodicTask() immediately and starts the cycle of invocations and sleeps
|
* This invokes PeriodicTask() immediately and starts the cycle of invocations and sleeps
|
||||||
*/
|
*/
|
||||||
virtual void Start() {
|
virtual void Start() {
|
||||||
|
#if !EFI_UNIT_TEST
|
||||||
|
chVTObjectInit(&timer);
|
||||||
|
#endif // EFI_UNIT_TEST
|
||||||
|
|
||||||
runAndScheduleNext(this);
|
runAndScheduleNext(this);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue