send more of Engine Sniffer data #4560

This commit is contained in:
rusefillc 2022-10-29 22:33:50 -04:00
parent 0283351d6c
commit 2a1d623aba
1 changed files with 6 additions and 8 deletions

View File

@ -31,6 +31,12 @@
// a bit weird because of conditional compilation
static char shaft_signal_msg_index[15];
#if EFI_ENGINE_SNIFFER
#define addEngineSnifferEvent(name, msg) { if (getTriggerCentral()->isEngineSnifferEnabled) { waveChart.addEvent3((name), (msg)); } }
#else
#define addEngineSnifferEvent(n, msg) {}
#endif /* EFI_ENGINE_SNIFFER */
#if EFI_ENGINE_SNIFFER
#include "eficonsole.h"
@ -39,8 +45,6 @@ static char shaft_signal_msg_index[15];
#define CHART_DELIMETER '!'
extern WaveChart waveChart;
extern uint32_t maxLockedDuration;
/**
* This is the number of events in the digital chart which would be displayed
* on the 'digital sniffer' pane
@ -73,12 +77,6 @@ static void resetNow() {
WaveChart::WaveChart() : logging("wave chart", WAVE_LOGGING_BUFFER, sizeof(WAVE_LOGGING_BUFFER)) {
}
#if EFI_ENGINE_SNIFFER
#define addEngineSnifferEvent(name, msg) { if (getTriggerCentral()->isEngineSnifferEnabled) { waveChart.addEvent3((name), (msg)); } }
#else
#define addEngineSnifferEvent(n, msg) {}
#endif /* EFI_ENGINE_SNIFFER */
void WaveChart::init() {
isInitialized = true;
reset();