format code according to conventions [skip ci]
This commit is contained in:
		
							parent
							
								
									5117dff6a2
								
							
						
					
					
						commit
						76cb2b1160
					
				
					 1 changed files with 6 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -120,13 +120,9 @@ __attribute__((weak)) bool process_record_kb(uint16_t keycode, keyrecord_t *reco
 | 
			
		|||
 | 
			
		||||
__attribute__((weak)) bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; }
 | 
			
		||||
 | 
			
		||||
__attribute__ ((weak))
 | 
			
		||||
void post_process_record_kb(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
  post_process_record_user(keycode, record);
 | 
			
		||||
}
 | 
			
		||||
__attribute__((weak)) void post_process_record_kb(uint16_t keycode, keyrecord_t *record) { post_process_record_user(keycode, record); }
 | 
			
		||||
 | 
			
		||||
__attribute__ ((weak))
 | 
			
		||||
void post_process_record_user(uint16_t keycode, keyrecord_t *record) {}
 | 
			
		||||
__attribute__((weak)) void post_process_record_user(uint16_t keycode, keyrecord_t *record) {}
 | 
			
		||||
 | 
			
		||||
void reset_keyboard(void) {
 | 
			
		||||
    clear_keyboard();
 | 
			
		||||
| 
						 | 
				
			
			@ -182,8 +178,8 @@ uint16_t get_event_keycode(keyevent_t event) {
 | 
			
		|||
 | 
			
		||||
/* Get keycode, and then call keyboard function */
 | 
			
		||||
void post_process_record_quantum(keyrecord_t *record) {
 | 
			
		||||
  uint16_t keycode = get_record_keycode(record);
 | 
			
		||||
  post_process_record_kb(keycode, record);
 | 
			
		||||
    uint16_t keycode = get_record_keycode(record);
 | 
			
		||||
    post_process_record_kb(keycode, record);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Core keycode function, hands off handling to other functions,
 | 
			
		||||
| 
						 | 
				
			
			@ -208,7 +204,7 @@ bool process_record_quantum(keyrecord_t *record) {
 | 
			
		|||
 | 
			
		||||
#ifdef WPM_ENABLE
 | 
			
		||||
    if (record->event.pressed) {
 | 
			
		||||
	update_wpm(keycode);
 | 
			
		||||
        update_wpm(keycode);
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -666,7 +662,7 @@ void matrix_scan_quantum() {
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef WPM_ENABLE
 | 
			
		||||
  decay_wpm();
 | 
			
		||||
    decay_wpm();
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef HAPTIC_ENABLE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue