synchronize scheduler, now it works

This commit is contained in:
2024-03-08 13:12:55 +01:00
parent 8da88e96c2
commit a4adf6ac27
5 changed files with 20 additions and 34 deletions

4
led.c
View File

@ -21,7 +21,7 @@ void ledBlueOff() {
}
void ledExec(void *args) {
static int i = 0;
static uint16_t i = 0;
if (i == 0) {
ledGreenOff();
@ -41,7 +41,7 @@ void ledInit() {
ledBlueOff();
// schAdd(ledExec, NULL, 0, 50);
schAdd(ledExec, NULL, 0, 500);
}