| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -42,14 +42,13 @@ class CarInterface(CarInterfaceBase): | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    else: | 
					 | 
					 | 
					 | 
					    else: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      # Lock out if the car does not have needed lateral and longitudinal control APIs. | 
					 | 
					 | 
					 | 
					      # Lock out if the car does not have needed lateral and longitudinal control APIs. | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      # Note that we also check CAN for adaptive cruise, but no known signal for LCA exists | 
					 | 
					 | 
					 | 
					      # Note that we also check CAN for adaptive cruise, but no known signal for LCA exists | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      pscm_config = next((fw for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), None) | 
					 | 
					 | 
					 | 
					      pscm_config = next((fw.response for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), None) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      if pscm_config: | 
					 | 
					 | 
					 | 
					      if pscm_config is not None and len(pscm_config) == 24: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if len(pscm_config.response) != 24: | 
					 | 
					 | 
					 | 
					        config_tja = pscm_config[7]  # Traffic Jam Assist | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        config_lca = pscm_config[8]  # Lane Centering Assist | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        if config_tja != 0xFF or config_lca != 0xFF: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          ret.dashcamOnly = True | 
					 | 
					 | 
					 | 
					          ret.dashcamOnly = True | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      else: | 
					 | 
					 | 
					 | 
					      else: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          config_tja = pscm_config.response[7]  # Traffic Jam Assist | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          config_lca = pscm_config.response[8]  # Lane Centering Assist | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          if config_tja != 0xFF or config_lca != 0xFF: | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        ret.dashcamOnly = True | 
					 | 
					 | 
					 | 
					        ret.dashcamOnly = True | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    # Auto Transmission: 0x732 ECU or Gear_Shift_by_Wire_FD1 | 
					 | 
					 | 
					 | 
					    # Auto Transmission: 0x732 ECU or Gear_Shift_by_Wire_FD1 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |