mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 05:12:33 +01:00 
			
		
		
		
	Fix issues with unused variables and functions preventing a clean compile.
This commit is contained in:
		
							parent
							
								
									8711dda0d3
								
							
						
					
					
						commit
						ef7c79b781
					
				| @ -23,6 +23,7 @@ typedef void (*rgb_func_pointer)(void); | |||||||
|  * |  * | ||||||
|  * noinline to optimise for firmware size not speed (not in hot path) |  * noinline to optimise for firmware size not speed (not in hot path) | ||||||
|  */ |  */ | ||||||
|  | #if !(defined(RGBLIGHT_DISABLE_KEYCODES) || defined(RGB_MATRIX_DISABLE_KEYCODES)) | ||||||
| static void __attribute__((noinline)) handleKeycodeRGB(const uint8_t is_shifted, const rgb_func_pointer inc_func, const rgb_func_pointer dec_func) { | static void __attribute__((noinline)) handleKeycodeRGB(const uint8_t is_shifted, const rgb_func_pointer inc_func, const rgb_func_pointer dec_func) { | ||||||
|     if (is_shifted) { |     if (is_shifted) { | ||||||
|         dec_func(); |         dec_func(); | ||||||
| @ -30,6 +31,7 @@ static void __attribute__((noinline)) handleKeycodeRGB(const uint8_t is_shifted, | |||||||
|         inc_func(); |         inc_func(); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Wrapper for animation mode |  * Wrapper for animation mode | ||||||
| @ -56,7 +58,9 @@ bool process_rgb(const uint16_t keycode, const keyrecord_t *record) { | |||||||
|     // Split keyboards need to trigger on key-up for edge-case issue
 |     // Split keyboards need to trigger on key-up for edge-case issue
 | ||||||
|     if (!record->event.pressed) { |     if (!record->event.pressed) { | ||||||
| #endif | #endif | ||||||
|  | #if !(defined(RGBLIGHT_DISABLE_KEYCODES) || defined(RGB_MATRIX_DISABLE_KEYCODES)) | ||||||
|         uint8_t shifted = get_mods() & MOD_MASK_SHIFT; |         uint8_t shifted = get_mods() & MOD_MASK_SHIFT; | ||||||
|  | #endif | ||||||
|         switch (keycode) { |         switch (keycode) { | ||||||
|             case RGB_TOG: |             case RGB_TOG: | ||||||
| #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 cmdremily
						cmdremily