mirror of https://github.com/FOME-Tech/fome-fw.git
CJ125 unit-tests coverage #617
This commit is contained in:
parent
5971404698
commit
8081b07782
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue