mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-04 07:12:33 +01:00 
			
		
		
		
	[Keyboard] Fix compilation issues for Mechlovin Adelais (#18019)
This commit is contained in:
		
							parent
							
								
									a1fe9fe3b3
								
							
						
					
					
						commit
						ea2ec5835b
					
				@ -51,15 +51,13 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		||||
        } else {
 | 
			
		||||
            tap_code(KC_VOLU);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    else if (index == 1) {
 | 
			
		||||
    } else if (index == 1) {
 | 
			
		||||
        if (clockwise) {
 | 
			
		||||
            tap_code(KC_LEFT);
 | 
			
		||||
        } else {
 | 
			
		||||
            tap_code(KC_RGHT);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    else if (index == 2) {
 | 
			
		||||
    } else if (index == 2) {
 | 
			
		||||
        if (clockwise) {
 | 
			
		||||
            tap_code(KC_UP);
 | 
			
		||||
        } else {
 | 
			
		||||
@ -69,11 +67,12 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
  #endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
    if (record->event.pressed) {
 | 
			
		||||
    switch(keycode) {
 | 
			
		||||
        switch (keycode) {
 | 
			
		||||
#ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
            case KC_F13: // toggle rgb matrix
 | 
			
		||||
                rgb_matrix_toggle();
 | 
			
		||||
                return false;
 | 
			
		||||
@ -104,6 +103,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
            case KC_F22:
 | 
			
		||||
                rgb_matrix_decrease_val();
 | 
			
		||||
                return false;
 | 
			
		||||
#endif
 | 
			
		||||
            default:
 | 
			
		||||
                break;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -65,15 +65,13 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		||||
        } else {
 | 
			
		||||
            tap_code(KC_VOLU);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    else if (index == 1) {
 | 
			
		||||
    } else if (index == 1) {
 | 
			
		||||
        if (clockwise) {
 | 
			
		||||
            tap_code(KC_LEFT);
 | 
			
		||||
        } else {
 | 
			
		||||
            tap_code(KC_RGHT);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    else if (index == 2) {
 | 
			
		||||
    } else if (index == 2) {
 | 
			
		||||
        if (clockwise) {
 | 
			
		||||
            tap_code(KC_UP);
 | 
			
		||||
        } else {
 | 
			
		||||
@ -83,11 +81,12 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
  #endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
    if (record->event.pressed) {
 | 
			
		||||
    switch(keycode) {
 | 
			
		||||
        switch (keycode) {
 | 
			
		||||
#ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
            case BL_TOG: // toggle rgb matrix
 | 
			
		||||
                rgb_matrix_toggle();
 | 
			
		||||
                return false;
 | 
			
		||||
@ -118,6 +117,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
            case BL_DVAL:
 | 
			
		||||
                rgb_matrix_decrease_val();
 | 
			
		||||
                return false;
 | 
			
		||||
#endif
 | 
			
		||||
            default:
 | 
			
		||||
                break;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user