refactoring
This commit is contained in:
parent
90c19d7292
commit
3072e842f0
|
@ -103,7 +103,7 @@ bool WaveChart::isStartedTooLongAgo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WaveChart::isFull() {
|
bool WaveChart::isFull() {
|
||||||
return counter >= engineConfiguration->engineChartSize;
|
return counter >= CONFIG(engineChartSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void printStatus(void) {
|
static void printStatus(void) {
|
||||||
|
@ -165,7 +165,7 @@ static char timeBuffer[10];
|
||||||
* @brief Register an event for digital sniffer
|
* @brief Register an event for digital sniffer
|
||||||
*/
|
*/
|
||||||
void WaveChart::addEvent3(const char *name, const char * msg) {
|
void WaveChart::addEvent3(const char *name, const char * msg) {
|
||||||
if (skipUntilEngineCycle != 0 && engine->rpmCalculator.getRevolutionCounter() < skipUntilEngineCycle)
|
if (skipUntilEngineCycle != 0 && ENGINE(rpmCalculator.getRevolutionCounter()) < skipUntilEngineCycle)
|
||||||
return;
|
return;
|
||||||
efiAssertVoid(name!=NULL, "WC: NULL name");
|
efiAssertVoid(name!=NULL, "WC: NULL name");
|
||||||
if (!ENGINE(isEngineChartEnabled)) {
|
if (!ENGINE(isEngineChartEnabled)) {
|
||||||
|
|
Loading…
Reference in New Issue