From 69c86dcbdc23672f7bdb99130e9fd8a5888485e0 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Mon, 19 Jan 2015 09:03:57 -0600 Subject: [PATCH] auto-sync --- firmware/development/analog_chart.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/firmware/development/analog_chart.cpp b/firmware/development/analog_chart.cpp index 6b96a810bc..9944282558 100644 --- a/firmware/development/analog_chart.cpp +++ b/firmware/development/analog_chart.cpp @@ -39,12 +39,12 @@ void acAddData(float angle, float value) { if (getFullLog()) { scheduleLogging(&logging); } - pendingData = FALSE; + pendingData = false; } return; } if (!pendingData) { - pendingData = TRUE; + pendingData = true; resetLogging(&logging); // message header appendPrintf(&logging, "analog_chart%s", DELIMETER); @@ -55,9 +55,16 @@ void acAddData(float angle, float value) { } } +static void setAnalogChartFrequency(int value) { + engineConfiguration->analogChartFrequency = value; +} + void initAnalogChart(void) { initLoggingExt(&logging, "analog chart", LOGGING_BUFFER, sizeof(LOGGING_BUFFER)); - initialized = TRUE; + + addConsoleActionI("set_analog_chart_freq", setAnalogChartFrequency); + + initialized = true; } #endif /* EFI_ANALOG_CHART */