auto-sync

This commit is contained in:
rusEfi 2015-01-19 09:03:57 -06:00
parent b3bca9752c
commit 69c86dcbdc
1 changed files with 10 additions and 3 deletions

View File

@ -39,12 +39,12 @@ void acAddData(float angle, float value) {
if (getFullLog()) { if (getFullLog()) {
scheduleLogging(&logging); scheduleLogging(&logging);
} }
pendingData = FALSE; pendingData = false;
} }
return; return;
} }
if (!pendingData) { if (!pendingData) {
pendingData = TRUE; pendingData = true;
resetLogging(&logging); resetLogging(&logging);
// message header // message header
appendPrintf(&logging, "analog_chart%s", DELIMETER); 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) { void initAnalogChart(void) {
initLoggingExt(&logging, "analog chart", LOGGING_BUFFER, sizeof(LOGGING_BUFFER)); initLoggingExt(&logging, "analog chart", LOGGING_BUFFER, sizeof(LOGGING_BUFFER));
initialized = TRUE;
addConsoleActionI("set_analog_chart_freq", setAnalogChartFrequency);
initialized = true;
} }
#endif /* EFI_ANALOG_CHART */ #endif /* EFI_ANALOG_CHART */