mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	dynamic_macro.h: Do not use backlight_toggle if backlight is disabled
Fixes #1199.
This commit is contained in:
		
							parent
							
								
									10a7cd7e5a
								
							
						
					
					
						commit
						a1e156a3d2
					
				| @ -48,9 +48,11 @@ enum dynamic_macro_keycodes { | |||||||
| /* Blink the LEDs to notify the user about some event. */ | /* Blink the LEDs to notify the user about some event. */ | ||||||
| void dynamic_macro_led_blink(void) | void dynamic_macro_led_blink(void) | ||||||
| { | { | ||||||
|  | #ifdef BACKLIGHT_ENABLE | ||||||
|     backlight_toggle(); |     backlight_toggle(); | ||||||
|     _delay_ms(100); |     _delay_ms(100); | ||||||
|     backlight_toggle(); |     backlight_toggle(); | ||||||
|  | #endif | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* Convenience macros used for retrieving the debug info. All of them
 | /* Convenience macros used for retrieving the debug info. All of them
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Wojciech Siewierski
						Wojciech Siewierski