Fix BACKLIGHT_CAPS_LOCK warning (#15999)

* Fix BACKLIGHT_CAPS_LOCK warning

* align defs
This commit is contained in:
Joel Challis 2022-01-22 23:11:42 +00:00 committed by GitHub
parent 6e83b44940
commit eddd1c0567
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,7 @@
#include "host.h"
#include "debug.h"
#ifdef BACKLIGHT_CAPS_LOCK
# ifdef BACKLIGHT_ENABLE
# include "backlight.h"
extern backlight_config_t backlight_config;
@ -24,12 +25,13 @@ extern backlight_config_t backlight_config;
# pragma message "Cannot use BACKLIGHT_CAPS_LOCK without backlight being enabled"
# undef BACKLIGHT_CAPS_LOCK
# endif
#endif
#ifndef LED_PIN_ON_STATE
# define LED_PIN_ON_STATE 1
#endif
#if defined(BACKLIGHT_CAPS_LOCK)
#ifdef BACKLIGHT_CAPS_LOCK
/** \brief Caps Lock indicator using backlight (for keyboards without dedicated LED)
*/
static void handle_backlight_caps_lock(led_t led_state) {