Remove keyboard level QK_BOOT implementations (#24231)
				
					
				
			This commit is contained in:
		
							parent
							
								
									339b820520
								
							
						
					
					
						commit
						019b6f67b2
					
				
					 9 changed files with 63 additions and 82 deletions
				
			
		| 
						 | 
				
			
			@ -92,22 +92,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
        numlock_set = true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    switch (keycode) {
 | 
			
		||||
        case QK_BOOT:
 | 
			
		||||
            if (record->event.pressed) {
 | 
			
		||||
                set_bitc_LED(LED_DIM);
 | 
			
		||||
                rgblight_disable_noeeprom();
 | 
			
		||||
                #ifdef OLED_ENABLE
 | 
			
		||||
                oled_off();
 | 
			
		||||
                #endif
 | 
			
		||||
                bootloader_jump();  // jump to bootloader
 | 
			
		||||
            }
 | 
			
		||||
            return false;
 | 
			
		||||
 | 
			
		||||
        default:
 | 
			
		||||
            break;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -121,3 +105,16 @@ void matrix_scan_kb(void) {
 | 
			
		|||
    matrix_scan_remote_kb();
 | 
			
		||||
    matrix_scan_user();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool shutdown_kb(bool jump_to_bootloader) {
 | 
			
		||||
    if (!shutdown_user(jump_to_bootloader)) {
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    set_bitc_LED(LED_DIM);
 | 
			
		||||
    rgblight_disable_noeeprom();
 | 
			
		||||
#ifdef OLED_ENABLE
 | 
			
		||||
    oled_off();
 | 
			
		||||
#endif
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue