Overhaul bootmagic logic to have single entrypoint (#8532)
* Relocate bootmagic logic to have single entrypoint * Align init of layer state
This commit is contained in:
		
							parent
							
								
									02dc3b6722
								
							
						
					
					
						commit
						a3cbc8a004
					
				
					 15 changed files with 227 additions and 153 deletions
				
			
		| 
						 | 
				
			
			@ -16,6 +16,7 @@
 | 
			
		|||
 | 
			
		||||
#include <ctype.h>
 | 
			
		||||
#include "quantum.h"
 | 
			
		||||
#include "magic.h"
 | 
			
		||||
 | 
			
		||||
#ifdef BLUETOOTH_ENABLE
 | 
			
		||||
#    include "outputselect.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -601,12 +602,7 @@ void tap_random_base64(void) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void matrix_init_quantum() {
 | 
			
		||||
#ifdef BOOTMAGIC_LITE
 | 
			
		||||
    bootmagic_lite();
 | 
			
		||||
#endif
 | 
			
		||||
    if (!eeconfig_is_enabled()) {
 | 
			
		||||
        eeconfig_init();
 | 
			
		||||
    }
 | 
			
		||||
    magic();
 | 
			
		||||
#if defined(LED_NUM_LOCK_PIN) || defined(LED_CAPS_LOCK_PIN) || defined(LED_SCROLL_LOCK_PIN) || defined(LED_COMPOSE_PIN) || defined(LED_KANA_PIN)
 | 
			
		||||
    // TODO: remove calls to led_init_ports from keyboards and remove ifdef
 | 
			
		||||
    led_init_ports();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue