fix PWM checking for wrong CAN bus

This commit is contained in:
Leonard Gies 2025-05-26 23:50:05 +02:00
parent 6051e4b993
commit 28fc2a966b
Signed by: l.gies
GPG Key ID: 6F6FB9338EE44F71

View File

@ -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