|  |  | @ -393,16 +393,10 @@ class CarInterface(CarInterfaceBase): | 
			
		
	
		
		
			
				
					
					|  |  |  |     if self.CS.CP.minEnableSpeed > 0 and ret.vEgo < 0.001: |  |  |  |     if self.CS.CP.minEnableSpeed > 0 and ret.vEgo < 0.001: | 
			
		
	
		
		
			
				
					
					|  |  |  |       events.add(EventName.manualRestart) |  |  |  |       events.add(EventName.manualRestart) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     # handle button presses |  |  |  |     if self.CS.cruise_buttons in [CruiseButtons.RES_ACCEL, CruiseButtons.DECEL_SET]: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     for b in ret.buttonEvents: |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       # do enable on both accel and decel buttons |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       if b.type in [ButtonType.accelCruise, ButtonType.decelCruise] and not b.pressed: |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       if not self.CP.pcmCruise: |  |  |  |       if not self.CP.pcmCruise: | 
			
		
	
		
		
			
				
					
					|  |  |  |         events.add(EventName.buttonEnable) |  |  |  |         events.add(EventName.buttonEnable) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |     elif self.CS.cruise_buttons == CruiseButtons.CANCEL: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       # do disable on button down |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       if b.type == ButtonType.cancel and b.pressed: |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         events.add(EventName.buttonCancel) |  |  |  |         events.add(EventName.buttonCancel) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     ret.events = events.to_msg() |  |  |  |     ret.events = events.to_msg() | 
			
		
	
	
		
		
			
				
					|  |  | 
 |