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