This commit is contained in:
rusefi 2018-01-28 14:16:57 -05:00
parent 049848c577
commit 5191ffcbce
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ EXTERN_ENGINE;
static int periodIndex = 0;
static OutputPin testPin;
scheduling_s *scheduling;
scheduling_s scheduling;
static int test557[] = {100, 100, 200, 200, 500, 500, 500, 5000};
#define TEST_LEN 8
@ -41,7 +41,7 @@ static void toggleTestAndScheduleNext() {
testPin.toggle();
periodIndex = (periodIndex + 1) % TEST_LEN;
testTime += test557[periodIndex];
scheduleByTimestamp(&state->scheduling, switchTimeUs, (schfunc_t) timerCallback, state);
scheduleByTimestamp(&scheduling, testTime, (schfunc_t) &scheduleByTimestamp, NULL);
}