only:withHwQcActivity

This commit is contained in:
rusefi 2024-06-02 18:34:31 -04:00
parent 19915ca812
commit b159433de6
1 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,8 @@ CanWrite::CanWrite()
PUBLIC_API_WEAK bool boardEnableSendWidebandInfo() { return true; } PUBLIC_API_WEAK bool boardEnableSendWidebandInfo() { return true; }
extern bool withHwQcActivity;
void CanWrite::PeriodicTask(efitick_t nowNt) { void CanWrite::PeriodicTask(efitick_t nowNt) {
UNUSED(nowNt); UNUSED(nowNt);
static uint16_t cycleCount = 0; static uint16_t cycleCount = 0;
@ -57,7 +59,7 @@ void CanWrite::PeriodicTask(efitick_t nowNt) {
updateDash(cycle); updateDash(cycle);
if (engineConfiguration->enableExtendedCanBroadcast) { if (engineConfiguration->enableExtendedCanBroadcast || withHwQcActivity) {
if (cycle.isInterval(CI::_100ms)) { if (cycle.isInterval(CI::_100ms)) {
sendQcBenchEventCounters(); sendQcBenchEventCounters();
sendQcBenchRawAnalogValues(); sendQcBenchRawAnalogValues();