summaryrefslogtreecommitdiffstats
path: root/users/spidey3/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/spidey3/config.h')
-rw-r--r--users/spidey3/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/users/spidey3/config.h b/users/spidey3/config.h
index 884cc11a5c..49409ed85d 100644
--- a/users/spidey3/config.h
+++ b/users/spidey3/config.h
@@ -1,3 +1,6 @@
+// Copyright 2022 Joshua Diamond josh@windowoffire.com (@spidey3)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
#pragma once
#define LED_DISABLE_WHEN_USB_SUSPENDED
@@ -40,3 +43,9 @@
#undef MANUFACTURER
#define MANUFACTURER Window of Fire
+
+// Some keyboards enable BACKLIGHT_CAPS_LOCK without checking if backlight is enabled.
+// Undef as appropriate to avoid compiler warnings in that case.
+#ifndef BACKLIGHT_ENABLE
+#undef BACKLIGHT_CAPS_LOCK
+#endif