From ff656dc1c0337c9158a027db423aafd2e664566e Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 17 Nov 2024 22:11:36 -0500 Subject: [PATCH] verboseCan TX improvement --- firmware/hw_layer/drivers/can/can_msg_tx.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/hw_layer/drivers/can/can_msg_tx.cpp b/firmware/hw_layer/drivers/can/can_msg_tx.cpp index 3f1473fc9c..a7f8311bf3 100644 --- a/firmware/hw_layer/drivers/can/can_msg_tx.cpp +++ b/firmware/hw_layer/drivers/can/can_msg_tx.cpp @@ -92,7 +92,10 @@ CanTxMessage::~CanTxMessage() { return; } - if (engineConfiguration->verboseCan) { + bool verboseCan0 = engineConfiguration->verboseCan && busIndex == 0; + bool verboseCan1 = engineConfiguration->verboseCan2 && busIndex == 1; + + if (verboseCan0 || verboseCan1) { efiPrintf("%s Sending CAN bus%d message: ID=%x/l=%x %x %x %x %x %x %x %x %x", getCanCategory(category), busIndex,