refactoring

This commit is contained in:
Andrey 2021-07-13 20:10:31 -04:00
parent ebeb4f5d92
commit 41ec764617
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
/**