From 57f3ddd43a40dbc1d2602e26cd7672855c17f9c1 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 27 Sep 2018 23:45:05 +0200 Subject: [PATCH] Use Kaleidoscope.millisAtCycleStart() Signed-off-by: Gergely Nagy --- src/Kaleidoscope-LEDEffect-Breathe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kaleidoscope-LEDEffect-Breathe.cpp b/src/Kaleidoscope-LEDEffect-Breathe.cpp index 86795af9..1fc02982 100644 --- a/src/Kaleidoscope-LEDEffect-Breathe.cpp +++ b/src/Kaleidoscope-LEDEffect-Breathe.cpp @@ -19,7 +19,7 @@ namespace kaleidoscope { void LEDBreatheEffect::update(void) { - uint16_t now = millis(); + uint16_t now = Kaleidoscope.millisAtCycleStart(); if ((now - last_update_) < UPDATE_INTERVAL) return; last_update_ = now;