This commit is contained in:
rusefillc 2021-12-22 20:14:05 -05:00
parent a6c580e5a9
commit 15daec77e6
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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