forked from mirrors/qmk_userspace
		
	Fix BACKLIGHT_CAPS_LOCK warning (#15999)
* Fix BACKLIGHT_CAPS_LOCK warning * align defs
This commit is contained in:
		
					parent
					
						
							
								6e83b44940
							
						
					
				
			
			
				commit
				
					
						eddd1c0567
					
				
			
		
					 1 changed files with 8 additions and 6 deletions
				
			
		| 
						 | 
					@ -17,19 +17,21 @@
 | 
				
			||||||
#include "host.h"
 | 
					#include "host.h"
 | 
				
			||||||
#include "debug.h"
 | 
					#include "debug.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef BACKLIGHT_ENABLE
 | 
					#ifdef BACKLIGHT_CAPS_LOCK
 | 
				
			||||||
#    include "backlight.h"
 | 
					#    ifdef BACKLIGHT_ENABLE
 | 
				
			||||||
 | 
					#        include "backlight.h"
 | 
				
			||||||
extern backlight_config_t backlight_config;
 | 
					extern backlight_config_t backlight_config;
 | 
				
			||||||
#else
 | 
					#    else
 | 
				
			||||||
#    pragma message "Cannot use BACKLIGHT_CAPS_LOCK without backlight being enabled"
 | 
					#        pragma message "Cannot use BACKLIGHT_CAPS_LOCK without backlight being enabled"
 | 
				
			||||||
#    undef BACKLIGHT_CAPS_LOCK
 | 
					#        undef BACKLIGHT_CAPS_LOCK
 | 
				
			||||||
 | 
					#    endif
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef LED_PIN_ON_STATE
 | 
					#ifndef LED_PIN_ON_STATE
 | 
				
			||||||
#    define LED_PIN_ON_STATE 1
 | 
					#    define LED_PIN_ON_STATE 1
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(BACKLIGHT_CAPS_LOCK)
 | 
					#ifdef BACKLIGHT_CAPS_LOCK
 | 
				
			||||||
/** \brief Caps Lock indicator using backlight (for keyboards without dedicated LED)
 | 
					/** \brief Caps Lock indicator using backlight (for keyboards without dedicated LED)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
static void handle_backlight_caps_lock(led_t led_state) {
 | 
					static void handle_backlight_caps_lock(led_t led_state) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue