forked from mfulz_github/qmk_firmware
		
	Ignore transport defaults if SPLIT_KEYBOARD is unset (#16706)
* Ignore transport defaults if SPLIT_KEYBOARD is unset * keep exists check
This commit is contained in:
		
							parent
							
								
									4f8cc32cf5
								
							
						
					
					
						commit
						23f365f8bc
					
				@ -271,13 +271,15 @@ def _extract_split_transport(info_data, config_c):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        info_data['split']['transport']['protocol'] = 'i2c'
 | 
					        info_data['split']['transport']['protocol'] = 'i2c'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    elif 'protocol' not in info_data.get('split', {}).get('transport', {}):
 | 
					    # Ignore transport defaults if "SPLIT_KEYBOARD" is unset
 | 
				
			||||||
 | 
					    elif 'enabled' in info_data.get('split', {}):
 | 
				
			||||||
        if 'split' not in info_data:
 | 
					        if 'split' not in info_data:
 | 
				
			||||||
            info_data['split'] = {}
 | 
					            info_data['split'] = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if 'transport' not in info_data['split']:
 | 
					        if 'transport' not in info_data['split']:
 | 
				
			||||||
            info_data['split']['transport'] = {}
 | 
					            info_data['split']['transport'] = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if 'protocol' not in info_data['split']['transport']:
 | 
				
			||||||
            info_data['split']['transport']['protocol'] = 'serial'
 | 
					            info_data['split']['transport']['protocol'] = 'serial'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user