refactoring

This commit is contained in:
rusefillc 2022-10-28 02:41:20 -04:00
parent 7792146f62
commit 2677da2105
1 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ static void emulatorApplyPinState(int stateIndex, PwmConfig *state) /* pwm_gen_c
#endif /* EFI_PROD_CODE */
}
static void initTriggerPwm() {
static void startSimulatedTriggerSignal() {
// No need to start more than once
if (hasInitTriggerEmulator) {
return;
@ -160,13 +160,13 @@ static void initTriggerPwm() {
}
void enableTriggerStimulator() {
initTriggerPwm();
startSimulatedTriggerSignal();
engine->triggerCentral.directSelfStimulation = true;
engine->rpmCalculator.Register();
}
void enableExternalTriggerStimulator() {
initTriggerPwm();
startSimulatedTriggerSignal();
engine->triggerCentral.directSelfStimulation = false;
}