Add support to persist MD LED framework settings (#14980)
* Add support to persist MD LED framework settings * avoid out-of-bounds errors when SmartEEPROM is not enabled * Update brightness defaults * clang
This commit is contained in:
		
							parent
							
								
									f4ea262c17
								
							
						
					
					
						commit
						7ae0f371cf
					
				
					 6 changed files with 106 additions and 31 deletions
				
			
		| 
						 | 
				
			
			@ -61,6 +61,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
    static uint32_t key_timer;
 | 
			
		||||
    static uint8_t scroll_effect = 0;
 | 
			
		||||
 | 
			
		||||
    switch (keycode) {
 | 
			
		||||
        case L_BRI ... U_T_AGCR:
 | 
			
		||||
            if (record->event.pressed) {
 | 
			
		||||
                md_led_changed();
 | 
			
		||||
            }
 | 
			
		||||
            break;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    switch (keycode) {
 | 
			
		||||
        case L_BRI:
 | 
			
		||||
            if (record->event.pressed) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue