auto-sync
This commit is contained in:
parent
b3bca9752c
commit
69c86dcbdc
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue