only:alphax-2chan

This commit is contained in:
rusefi 2023-08-27 14:55:18 -04:00
parent fb5e3f96b4
commit f8c641d811
2 changed files with 7 additions and 1 deletions

View File

@ -163,8 +163,10 @@ static void processCanRxImu(const CANRxFrame& frame) {
}
}
extern bool verboseRxCan;
void processCanRxMessage(const size_t busIndex, const CANRxFrame &frame, efitick_t nowNt) {
if (engineConfiguration->verboseCan && busIndex == 0) {
if ((engineConfiguration->verboseCan && busIndex == 0) || verboseRxCan) {
printPacket(busIndex, frame);
} else if (engineConfiguration->verboseCan2 && busIndex == 1) {
printPacket(busIndex, frame);

View File

@ -569,6 +569,8 @@ static void setSpiMode(int index, bool mode) {
printSpiState(engineConfiguration);
}
bool verboseRxCan = false;
static void enableOrDisable(const char *param, bool isEnabled) {
if (strEqualCaseInsensitive(param, "useTLE8888_cranking_hack")) {
engineConfiguration->useTLE8888_cranking_hack = isEnabled;
@ -578,6 +580,8 @@ static void enableOrDisable(const char *param, bool isEnabled) {
#endif // EFI_SHAFT_POSITION_INPUT
} else if (strEqualCaseInsensitive(param, "verboseTLE8888")) {
engineConfiguration->verboseTLE8888 = isEnabled;
} else if (strEqualCaseInsensitive(param, "verboseRxCan")) {
verboseRxCan = isEnabled;
} else if (strEqualCaseInsensitive(param, "verboseCan")) {
engineConfiguration->verboseCan = isEnabled;
} else if (strEqualCaseInsensitive(param, "verboseIsoTp")) {