Second CAN #3687
This commit is contained in:
parent
a6c580e5a9
commit
15daec77e6
|
@ -134,7 +134,7 @@ public:
|
|||
CANDriver* device = detectCanDevice(m_index);
|
||||
|
||||
if (!device) {
|
||||
warning(CUSTOM_ERR_CAN_CONFIGURATION, "CAN configuration issue");
|
||||
warning(CUSTOM_ERR_CAN_CONFIGURATION, "Read: CAN configuration issue bus=%d", m_index);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ CanTxMessage::~CanTxMessage() {
|
|||
auto device = s_devices[busIndex];
|
||||
|
||||
if (!device) {
|
||||
warning(CUSTOM_ERR_CAN_CONFIGURATION, "CAN configuration issue");
|
||||
warning(CUSTOM_ERR_CAN_CONFIGURATION, "Send: CAN configuration issue %d", busIndex);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -787,7 +787,8 @@ CANDriver* detectCanDeviceImpl(brain_pin_e pinRx, brain_pin_e pinTx) {
|
|||
if (isValidCan2RxPin(pinRx) && isValidCan2TxPin(pinTx))
|
||||
return &CAND2;
|
||||
#endif
|
||||
return NULL;
|
||||
firmwareError(OBD_PCM_Processor_Fault, "invalid CAN pins", hwPortname(pinTx));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#endif /* EFI_CAN_SUPPORT */
|
||||
|
|
Loading…
Reference in New Issue