CJ125 unit-tests coverage #617

This commit is contained in:
rusefi 2018-11-03 13:17:58 -04:00
parent 44cdd84a83
commit 5d5c80a8a1
3 changed files with 5 additions and 2 deletions

View File

@ -250,7 +250,9 @@ static void intHoldCallback(trigger_event_e ckpEventType, uint32_t index DECLARE
// todo: schedule this based on closest trigger event, same as ignition works
scheduleByAngle(rpm, &startTimer[structIndex], engineConfiguration->knockDetectionWindowStart,
(schfunc_t) &startIntegration, NULL, &engine->rpmCalculator);
#if EFI_PROD_CODE
hipLastExecutionCount = lastExecutionCount;
#endif
scheduleByAngle(rpm, &endTimer[structIndex], engineConfiguration->knockDetectionWindowEnd,
(schfunc_t) &endIntegration,
NULL, &engine->rpmCalculator);

View File

@ -11,8 +11,7 @@
#ifndef PIN_REPOSITORY_H_
#define PIN_REPOSITORY_H_
#include "ch.h"
#include "hal.h"
#include "global.h"
#include "io_pins.h"
#ifdef __cplusplus

View File

@ -287,8 +287,10 @@ static void cjCalibrate(void) {
uint32_t storedLambda = get16bitFromVoltage(vUaCal);
uint32_t storedHeater = get16bitFromVoltage(vUrCal);
scheduleMsg(logger, "cj125: Done! Saving calibration data (%d %d).", storedLambda, storedHeater);
#if EFI_PROD_CODE
backupRamSave(BACKUP_CJ125_CALIBRATION_LAMBDA, storedLambda);
backupRamSave(BACKUP_CJ125_CALIBRATION_HEATER, storedHeater);
#endif
state = CJ125_IDLE;
}