Second CAN #3687
This commit is contained in:
parent
cb5357890b
commit
f350338642
|
@ -779,6 +779,9 @@ bool isValidCanRxPin(brain_pin_e pin) {
|
|||
}
|
||||
|
||||
CANDriver* detectCanDeviceImpl(brain_pin_e pinRx, brain_pin_e pinTx) {
|
||||
if (pinRx == GPIO_UNASSIGNED && pinTx == GPIO_UNASSIGNED) {
|
||||
return nullptr;
|
||||
}
|
||||
#if STM32_CAN_USE_CAN1 || STM32_CAN_USE_FDCAN1
|
||||
if (isValidCan1RxPin(pinRx) && isValidCan1TxPin(pinTx))
|
||||
return &CAND1;
|
||||
|
|
Loading…
Reference in New Issue