Update to work with the latest Ranges APIs

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

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

Loading…
Cancel
Save