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
|
@ -35,8 +35,12 @@ public:
|
|||
/**
|
||||
* This invokes PeriodicTask() immediately and starts the cycle of invocations and sleeps
|
||||
*/
|
||||
virtual void Start() {
|
||||
runAndScheduleNext(this);
|
||||
}
|
||||
virtual void Start() {
|
||||
#if !EFI_UNIT_TEST
|
||||
chVTObjectInit(&timer);
|
||||
#endif // EFI_UNIT_TEST
|
||||
|
||||
runAndScheduleNext(this);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue