Set AMS error in Error_Handler()
This commit is contained in:
		@ -545,6 +545,7 @@ void Error_Handler(void)
 | 
			
		||||
  /* USER CODE BEGIN Error_Handler_Debug */
 | 
			
		||||
  /* User can add his own implementation to report the HAL error return state */
 | 
			
		||||
  __disable_irq();
 | 
			
		||||
  HAL_GPIO_WritePin(AMS_NERROR_GPIO_Port, AMS_NERROR_Pin, GPIO_PIN_RESET);
 | 
			
		||||
  while (1) {
 | 
			
		||||
    ts_sm_set_relay_position(RELAY_NEG, 0);
 | 
			
		||||
    ts_sm_set_relay_position(RELAY_POS, 0);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user