parent
04f6913d56
commit
cfcfc851f5
|
@ -2058,7 +2058,7 @@ typedef enum {
|
|||
CUSTOM_ERR_ZERO_CRANKING_FUEL = 6694,
|
||||
CUSTOM_ERR_6695 = 6695,
|
||||
CUSTOM_ERR_6696 = 6696,
|
||||
CUSTOM_ERR_6697 = 6697,
|
||||
CUSTOM_PWM_CYCLE_START = 6697,
|
||||
CUSTOM_ERR_ARRAY_IS_FULL = 6698,
|
||||
CUSTOM_ERR_ARRAY_REMOVE_ERROR = 6699,
|
||||
CUSTOM_ERR_INVALID_INPUT_ICU_PIN = 6700,
|
||||
|
@ -2069,7 +2069,7 @@ typedef enum {
|
|||
CUSTOM_ERR_6703 = 6703,
|
||||
CUSTOM_ERR_BOTH_FRONTS_REQUIRED = 6704,
|
||||
CUSTOM_TLE8888 = 6705,
|
||||
CUSTOM_ERR_6706 = 6706,
|
||||
CUSTOM_KNOCK_WINDOW = 6706,
|
||||
CUSTOM_ERR_TIMER_TEST_CALLBACK_NOT_HAPPENED = 6707,
|
||||
CUSTOM_ERR_TIMER_TEST_CALLBACK_WRONG_TIME = 6708,
|
||||
CUSTOM_ERR_6709 = 6709,
|
||||
|
|
|
@ -137,7 +137,12 @@ void PwmConfig::stop() {
|
|||
}
|
||||
|
||||
void PwmConfig::handleCycleStart() {
|
||||
efiAssertVoid(CUSTOM_ERR_6697, safe.phaseIndex == 0, "handleCycleStart");
|
||||
if (safe.phaseIndex != 0) {
|
||||
// https://github.com/rusefi/rusefi/issues/1030
|
||||
firmwareError(CUSTOM_PWM_CYCLE_START, "handleCycleStart %d", safe.phaseIndex);
|
||||
return;
|
||||
}
|
||||
|
||||
if (pwmCycleCallback != NULL) {
|
||||
pwmCycleCallback(this);
|
||||
}
|
||||
|
|
|
@ -255,13 +255,13 @@ static void intHoldCallback(trigger_event_e ckpEventType, uint32_t index DECLARE
|
|||
int structIndex = getRevolutionCounter() % 2;
|
||||
// todo: schedule this based on closest trigger event, same as ignition works
|
||||
scheduleByAngle(&startTimer[structIndex], engineConfiguration->knockDetectionWindowStart,
|
||||
(schfunc_t) &startIntegration, NULL PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
(schfunc_t) &startIntegration, NULL);
|
||||
#if EFI_PROD_CODE
|
||||
hipLastExecutionCount = lastExecutionCount;
|
||||
#endif /* EFI_PROD_CODE */
|
||||
scheduleByAngle(&endTimer[structIndex], engineConfiguration->knockDetectionWindowEnd,
|
||||
(schfunc_t) &endIntegration,
|
||||
NULL PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
NULL);
|
||||
engine->m.hipCbTime = getTimeNowLowerNt() - engine->m.beforeHipCb;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue