only post tunerstudio state if asked to

This commit is contained in:
Matthew Kennedy 2018-06-23 16:10:59 -05:00 committed by rusefi
parent 3fa3aa3094
commit e23e025176
1 changed files with 5 additions and 1 deletions

View File

@ -259,7 +259,11 @@ static void cjCalibrate(void) {
for (int i = 0; i < CJ125_CALIBRATE_NUM_SAMPLES; i++) {
cjUpdateAnalogValues();
cjPrintData();
cjPostState(&tsOutputChannels);
if (engineConfiguration->debugMode == DBG_CJ125) {
cjPostState(&tsOutputChannels);
}
vUaCal += vUa;
vUrCal += vUr;
}