Fix LED unit tests
parent
2c94e76ca9
commit
2053729a75
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue