Explicitly set LEDs that aren't active to zero. Otherwise, plugins like numlock won't get de-initialized

pull/365/head
Jesse Vincent 7 years ago
parent 1a5717d838
commit 0c1b723650
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -62,13 +62,11 @@ void StalkerEffect::update(void) {
LEDControl.setCrgbAt(r, c, variant->compute(&step)); LEDControl.setCrgbAt(r, c, variant->compute(&step));
} }
bool was_zero = (map_[r][c] == 0);
if (time_out) { if (time_out) {
map_[r][c] = step; map_[r][c] = step;
} }
if (!was_zero && !map_[r][c]) if (!map_[r][c])
LEDControl.setCrgbAt(r, c, (cRGB) { LEDControl.setCrgbAt(r, c, (cRGB) {
0, 0, 0 0, 0, 0
}); });

Loading…
Cancel
Save