From a3a5cfbc6afcb95a1928d6aa765b92a13d3ad99d Mon Sep 17 00:00:00 2001 From: Bart Nagel Date: Wed, 1 Nov 2017 00:30:45 -0700 Subject: [PATCH] Fix code typo in blazing trail decay A number was given as 0xf0 instead of 0xff, leading to a noticeable sudden snap from blood-orange to orange. --- src/Kaleidoscope/LED-Stalker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kaleidoscope/LED-Stalker.cpp b/src/Kaleidoscope/LED-Stalker.cpp index 055b7978..42c043d4 100644 --- a/src/Kaleidoscope/LED-Stalker.cpp +++ b/src/Kaleidoscope/LED-Stalker.cpp @@ -115,7 +115,7 @@ cRGB BlazingTrail::compute(uint8_t *step) { color.g = min(*step * color.g / 255, 255); } - if (*step >= 0xf0 - 30) + if (*step >= 0xff - 30) *step -= 1; else if (*step >= 0x40) *step -= 16;