From 731072fc5c280bb2da257b0ab2a9b601cebeb756 Mon Sep 17 00:00:00 2001 From: Albert Y <76888457+filterpaper@users.noreply.github.com> Date: Thu, 13 Jan 2022 10:38:34 +0800 Subject: [Keyboard] Fix compile error caused by variable exclusion on Moonlander (#15860) --- keyboards/moonlander/moonlander.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keyboards/moonlander/moonlander.c b/keyboards/moonlander/moonlander.c index ea50226f0c..e2e163f116 100644 --- a/keyboards/moonlander/moonlander.c +++ b/keyboards/moonlander/moonlander.c @@ -124,7 +124,9 @@ layer_state_t layer_state_set_kb(layer_state_t state) { bool LED_3 = false; bool LED_4 = false; bool LED_5 = false; +#if !defined(CAPS_LOCK_STATUS) bool LED_6 = false; +#endif uint8_t layer = get_highest_layer(state); switch (layer) { -- cgit v1.2.3