This commit is contained in:
andreika-git 2024-03-18 20:49:56 +02:00 committed by rusefillc
parent d5f2e98b1d
commit aface69ef0
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ protected:
palTogglePad(greenPort, greenPin);
}
// blink 3 times faster if Dual Bank is not enabled
chThdSleepMilliseconds(isFlashDualBank() ? 250 : 80);
auto delay = isFlashDualBank() ? 125 : 40;
// blink faster if not in the waiting mode
chThdSleepMilliseconds(waitedLongerThanTimeout ? (delay * 2) : delay);
}
}
};