new lines test commit

This commit is contained in:
rusefi 2017-02-20 12:31:58 -05:00
parent a06478c5b2
commit 71a4113886
1 changed files with 43 additions and 43 deletions

View File

@ -1,43 +1,43 @@
/** /**
* @file engine_sniffer.h * @file engine_sniffer.h
* @brief Dev console wave sniffer * @brief Dev console wave sniffer
* *
* @date Jun 23, 2013 * @date Jun 23, 2013
* @author Andrey Belomutskiy, (c) 2012-2017 * @author Andrey Belomutskiy, (c) 2012-2017
*/ */
#ifndef WAVE_CHART_H_ #ifndef WAVE_CHART_H_
#define WAVE_CHART_H_ #define WAVE_CHART_H_
#include "global.h" #include "global.h"
#if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__) #if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__)
#include "datalogging.h" #include "datalogging.h"
/** /**
* @brief Dev console sniffer data buffer * @brief Dev console sniffer data buffer
*/ */
class WaveChart { class WaveChart {
public: public:
WaveChart(); WaveChart();
void init(); void init();
void addEvent3(const char *name, const char *msg); void addEvent3(const char *name, const char *msg);
void reset(); void reset();
void publishIfFull(); void publishIfFull();
void publish(); void publish();
bool isFull(); bool isFull();
bool isStartedTooLongAgo(); bool isStartedTooLongAgo();
private: private:
Logging logging; Logging logging;
uint32_t counter; uint32_t counter;
efitime_t startTimeNt; efitime_t startTimeNt;
volatile int isInitialized; volatile int isInitialized;
}; };
void initWaveChart(WaveChart *chart); void initWaveChart(WaveChart *chart);
void showWaveChartHistogram(void); void showWaveChartHistogram(void);
void setChartSize(int newSize); void setChartSize(int newSize);
#endif /* EFI_ENGINE_SNIFFER */ #endif /* EFI_ENGINE_SNIFFER */
#endif /* WAVE_CHART_H_ */ #endif /* WAVE_CHART_H_ */