Fix LED unit tests

pull/81/head
D.R.racer 2021-08-04 11:34:10 +02:00 committed by DRracer
parent 2c94e76ca9
commit 2053729a75
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ void TestBlink(uint8_t index, ml::Color color, uint16_t shr16_register, bool sho
// test 4 seconds of blinking // test 4 seconds of blinking
for (uint8_t s = 1; s < 4; ++s) { for (uint8_t s = 1; s < 4; ++s) {
// one second elapsed ;) // one second elapsed ;)
mt::IncMillis(1000); mt::IncMillis(config::ledBlinkPeriodMs / 2);
leds.Step(); leds.Step();
shouldBeOn = !shouldBeOn; shouldBeOn = !shouldBeOn;
CHECK(leds.LedOn(index, color) == shouldBeOn); CHECK(leds.LedOn(index, color) == shouldBeOn);