CJ125 unit-tests coverage #617

This commit is contained in:
rusefi 2018-11-03 13:17:58 -04:00
parent 5971404698
commit 8081b07782
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 // todo: schedule this based on closest trigger event, same as ignition works
scheduleByAngle(rpm, &startTimer[structIndex], engineConfiguration->knockDetectionWindowStart, scheduleByAngle(rpm, &startTimer[structIndex], engineConfiguration->knockDetectionWindowStart,
(schfunc_t) &startIntegration, NULL, &engine->rpmCalculator); (schfunc_t) &startIntegration, NULL, &engine->rpmCalculator);
#if EFI_PROD_CODE
hipLastExecutionCount = lastExecutionCount; hipLastExecutionCount = lastExecutionCount;
#endif
scheduleByAngle(rpm, &endTimer[structIndex], engineConfiguration->knockDetectionWindowEnd, scheduleByAngle(rpm, &endTimer[structIndex], engineConfiguration->knockDetectionWindowEnd,
(schfunc_t) &endIntegration, (schfunc_t) &endIntegration,
NULL, &engine->rpmCalculator); NULL, &engine->rpmCalculator);

View File

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

View File

@ -287,8 +287,10 @@ static void cjCalibrate(void) {
uint32_t storedLambda = get16bitFromVoltage(vUaCal); uint32_t storedLambda = get16bitFromVoltage(vUaCal);
uint32_t storedHeater = get16bitFromVoltage(vUrCal); uint32_t storedHeater = get16bitFromVoltage(vUrCal);
scheduleMsg(logger, "cj125: Done! Saving calibration data (%d %d).", storedLambda, storedHeater); 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_LAMBDA, storedLambda);
backupRamSave(BACKUP_CJ125_CALIBRATION_HEATER, storedHeater); backupRamSave(BACKUP_CJ125_CALIBRATION_HEATER, storedHeater);
#endif
state = CJ125_IDLE; state = CJ125_IDLE;
} }