diff --git a/firmware/hw_layer/ports/stm32/stm32_can.cpp b/firmware/hw_layer/ports/stm32/stm32_can.cpp index baefc58dfe..ec13aa9c41 100644 --- a/firmware/hw_layer/ports/stm32/stm32_can.cpp +++ b/firmware/hw_layer/ports/stm32/stm32_can.cpp @@ -35,7 +35,7 @@ bool isValidCanRxPin(brain_pin_e pin) { } CANDriver* detectCanDevice(brain_pin_e pinRx, brain_pin_e pinTx) { - if (pinRx == Gpio::Unassigned && pinTx == Gpio::Unassigned) { + if (pinRx == Gpio::Unassigned || pinTx == Gpio::Unassigned) { return nullptr; } #if STM32_CAN_USE_CAN1 || STM32_CAN_USE_FDCAN1