mirror of https://github.com/rusefi/rusefi.git
refactoring
This commit is contained in:
parent
ebeb4f5d92
commit
41ec764617
|
@ -33,7 +33,7 @@ EXTERN_ENGINE;
|
|||
static int periodIndex = 0;
|
||||
|
||||
static OutputPin testPin;
|
||||
scheduling_s scheduling;
|
||||
static scheduling_s testScheduling;
|
||||
|
||||
static int test557[] = {5, 5, 10, 10, 20, 20, 50, 50, 100, 100, 200, 200, 500, 500, 500, 500};
|
||||
#define TEST_LEN 16
|
||||
|
@ -44,8 +44,7 @@ static void toggleTestAndScheduleNext(void *) {
|
|||
testPin.toggle();
|
||||
periodIndex = (periodIndex + 1) % TEST_LEN;
|
||||
testTime += test557[periodIndex];
|
||||
engine->executor.scheduleByTimestamp(&scheduling, testTime, &toggleTestAndScheduleNext);
|
||||
|
||||
engine->executor.scheduleByTimestamp(&testScheduling, testTime, &toggleTestAndScheduleNext);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue