fix PWM checking for wrong CAN bus
This commit is contained in:
parent
6051e4b993
commit
28fc2a966b
@ -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)
|
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)
|
if (handle != hMainCAN || (RxFifo0ITs & FDCAN_IT_RX_FIFO0_NEW_MESSAGE) == RESET)
|
||||||
return; // TODO: handle Peripheral CAN
|
return; // TODO: handle Peripheral CAN
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user