From 2053729a75f4ebc75e8f4dbae814314003473d22 Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Wed, 4 Aug 2021 11:34:10 +0200 Subject: [PATCH] Fix LED unit tests --- tests/unit/modules/leds/test_leds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/modules/leds/test_leds.cpp b/tests/unit/modules/leds/test_leds.cpp index 5cbfae8..8016e90 100644 --- a/tests/unit/modules/leds/test_leds.cpp +++ b/tests/unit/modules/leds/test_leds.cpp @@ -78,7 +78,7 @@ void TestBlink(uint8_t index, ml::Color color, uint16_t shr16_register, bool sho // test 4 seconds of blinking for (uint8_t s = 1; s < 4; ++s) { // one second elapsed ;) - mt::IncMillis(1000); + mt::IncMillis(config::ledBlinkPeriodMs / 2); leds.Step(); shouldBeOn = !shouldBeOn; CHECK(leds.LedOn(index, color) == shouldBeOn);