Unconditionally call led_init_ports (#12116)
* Unconditionally call led_init_ports * Another call to led_init_ports
This commit is contained in:
		
							parent
							
								
									2bc7511b9e
								
							
						
					
					
						commit
						3f419dc872
					
				
					 30 changed files with 20 additions and 215 deletions
				
			
		| 
						 | 
				
			
			@ -20,8 +20,8 @@
 | 
			
		|||
/* COL2ROW or ROW2COL */
 | 
			
		||||
#define DIODE_DIRECTION COL2ROW
 | 
			
		||||
 | 
			
		||||
#define CAPS_LOCK_LED_PIN F4
 | 
			
		||||
#define SCROLL_LOCK_LED_PIN D5
 | 
			
		||||
#define LED_CAPS_LOCK_PIN F4
 | 
			
		||||
#define LED_SCROLL_LOCK_PIN D5
 | 
			
		||||
 | 
			
		||||
/* Set 0 if debouncing isn't needed */
 | 
			
		||||
#define DEBOUNCE 5
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,12 +1 @@
 | 
			
		|||
#include "otd_plus.h"
 | 
			
		||||
 | 
			
		||||
void keyboard_pre_init_kb(void) {
 | 
			
		||||
    led_init_ports();
 | 
			
		||||
    keyboard_pre_init_user();
 | 
			
		||||
}
 | 
			
		||||
void led_init_ports(void) {
 | 
			
		||||
    setPinOutput(CAPS_LOCK_LED_PIN);
 | 
			
		||||
    setPinOutput(SCROLL_LOCK_LED_PIN);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue