fix PWM checking for wrong CAN bus
This commit is contained in:
		@ -397,9 +397,6 @@ void SetCCR(TIM_TypeDef* Instance, unsigned int ch, uint8_t dc) {
 | 
			
		||||
 | 
			
		||||
void HAL_FDCAN_RxFifo0Callback(FDCAN_HandleTypeDef *handle, uint32_t RxFifo0ITs)
 | 
			
		||||
{
 | 
			
		||||
  FDCAN_HandleTypeDef* hMainCAN = &hfdcan2;
 | 
			
		||||
  //FDCAN_HandleTypeDef* hPeriCAN = &hfdcan1;
 | 
			
		||||
 | 
			
		||||
  if (handle != hMainCAN || (RxFifo0ITs & FDCAN_IT_RX_FIFO0_NEW_MESSAGE) == RESET)
 | 
			
		||||
    return; // TODO: handle Peripheral CAN
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user