Stop using deprecated interfaces

Use `LAYER_SHIFT_OFFSET` instead of `MOMENTARY_OFFSET`, as the latter is
deprecated.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/389/head
Gergely Nagy 7 years ago
parent 1f97689ff1
commit 920b265a86

@ -50,8 +50,8 @@ void ActiveModColorEffect::loopHook(bool is_post_clear) {
::LEDControl.refreshAt(r, c); ::LEDControl.refreshAt(r, c);
} else if (k.flags == (SYNTHETIC | SWITCH_TO_KEYMAP)) { } else if (k.flags == (SYNTHETIC | SWITCH_TO_KEYMAP)) {
uint8_t layer = k.keyCode; uint8_t layer = k.keyCode;
if (layer >= MOMENTARY_OFFSET) if (layer >= LAYER_SHIFT_OFFSET)
layer -= MOMENTARY_OFFSET; layer -= LAYER_SHIFT_OFFSET;
if (Layer.isOn(layer)) if (Layer.isOn(layer))
::LEDControl.setCrgbAt(r, c, highlight_color); ::LEDControl.setCrgbAt(r, c, highlight_color);

Loading…
Cancel
Save