Update to work with the latest Ranges APIs

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 7 years ago
parent 8f0cfb753c
commit 8d071acde2

@ -40,8 +40,8 @@ void ActiveModColorEffect::loopHook(bool is_post_clear) {
for (byte c = 0; c < COLS; c++) { for (byte c = 0; c < COLS; c++) {
Key k = Layer.lookup(r, c); Key k = Layer.lookup(r, c);
if (k.raw >= KaleidoscopePlugins::Ranges::OSM_FIRST && k.raw <= KaleidoscopePlugins::Ranges::OSM_LAST) { if (k.raw >= ranges::OSM_FIRST && k.raw <= ranges::OSM_LAST) {
uint8_t idx = k.raw - KaleidoscopePlugins::Ranges::OSM_FIRST; uint8_t idx = k.raw - ranges::OSM_FIRST;
k.flags = 0; k.flags = 0;
k.keyCode = Key_LeftControl.keyCode + idx; k.keyCode = Key_LeftControl.keyCode + idx;
} }

Loading…
Cancel
Save