mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 05:12:33 +01:00 
			
		
		
		
	Fix compilation error when NO_ACTION_LAYER is defined.
This commit is contained in:
		
							parent
							
								
									eb5748e8bf
								
							
						
					
					
						commit
						bae1144a9f
					
				| @ -188,10 +188,10 @@ action_t store_or_get_action(bool pressed, keypos_t key) | |||||||
| 
 | 
 | ||||||
| int8_t layer_switch_get_layer(keypos_t key) | int8_t layer_switch_get_layer(keypos_t key) | ||||||
| { | { | ||||||
|  | #ifndef NO_ACTION_LAYER | ||||||
|     action_t action; |     action_t action; | ||||||
|     action.code = ACTION_TRANSPARENT; |     action.code = ACTION_TRANSPARENT; | ||||||
| 
 | 
 | ||||||
| #ifndef NO_ACTION_LAYER |  | ||||||
|     uint32_t layers = layer_state | default_layer_state; |     uint32_t layers = layer_state | default_layer_state; | ||||||
|     /* check top layer first */ |     /* check top layer first */ | ||||||
|     for (int8_t i = 31; i >= 0; i--) { |     for (int8_t i = 31; i >= 0; i--) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Joe Wasson
						Joe Wasson