verboseCan TX improvement

This commit is contained in:
rusefillc 2024-11-17 22:11:36 -05:00
parent 9dfbdc56e5
commit ff656dc1c0
1 changed files with 4 additions and 1 deletions

View File

@ -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,