removing unused parameter

This commit is contained in:
rusefi 2017-05-15 08:51:40 -04:00
parent f27f99e9cc
commit ce8218fef2
3 changed files with 9 additions and 11 deletions

View File

@ -23,9 +23,7 @@
#include "trigger_central.h" #include "trigger_central.h"
#include "trigger_simulator.h" #include "trigger_simulator.h"
#if EFI_PROD_CODE
#include "pwm_generator.h" #include "pwm_generator.h"
#endif
TriggerEmulatorHelper::TriggerEmulatorHelper() { TriggerEmulatorHelper::TriggerEmulatorHelper() {
primaryWheelState = false; primaryWheelState = false;
@ -157,16 +155,16 @@ static void emulatorApplyPinState(PwmConfig *state, int stateIndex) {
} }
} }
static void setEmulatorAtIndex(int index, Engine *engine) { static void setEmulatorAtIndex(int index) {
stopEmulationAtIndex = index; stopEmulationAtIndex = index;
} }
static void resumeStimulator(Engine *engine) { static void resumeStimulator() {
isEmulating = true; isEmulating = true;
stopEmulationAtIndex = DO_NOT_STOP; stopEmulationAtIndex = DO_NOT_STOP;
} }
void initTriggerEmulatorLogic(Logging *sharedLogger, Engine *engine) { void initTriggerEmulatorLogic(Logging *sharedLogger) {
logger = sharedLogger; logger = sharedLogger;
TriggerShape *s = &engine->triggerCentral.triggerShape; TriggerShape *s = &engine->triggerCentral.triggerShape;
@ -176,8 +174,8 @@ void initTriggerEmulatorLogic(Logging *sharedLogger, Engine *engine) {
triggerSignal.weComplexInit("position sensor", s->getSize(), s->wave.switchTimes, PWM_PHASE_MAX_WAVE_PER_PWM, triggerSignal.weComplexInit("position sensor", s->getSize(), s->wave.switchTimes, PWM_PHASE_MAX_WAVE_PER_PWM,
pinStates, updateTriggerShapeIfNeeded, emulatorApplyPinState); pinStates, updateTriggerShapeIfNeeded, emulatorApplyPinState);
addConsoleActionIP("rpm", (VoidIntVoidPtr) setTriggerEmulatorRPM, engine); addConsoleActionI("rpm", setTriggerEmulatorRPM);
addConsoleActionIP("stop_stimulator_at_index", (VoidIntVoidPtr) setEmulatorAtIndex, engine); addConsoleActionI("stop_stimulator_at_index", setEmulatorAtIndex);
addConsoleActionP("resume_stimulator", (VoidPtr) resumeStimulator, engine); addConsoleAction("resume_stimulator", resumeStimulator);
} }
#endif #endif /* EFI_EMULATE_POSITION_SENSORS */

View File

@ -21,6 +21,6 @@ public:
void handleEmulatorCallback(PwmConfig *state, int stateIndex); void handleEmulatorCallback(PwmConfig *state, int stateIndex);
}; };
void initTriggerEmulatorLogic(Logging *sharedLogger, Engine *engine); void initTriggerEmulatorLogic(Logging *sharedLogger);
#endif /* TRIGGER_EMULATOR_ALGO_H_ */ #endif /* TRIGGER_EMULATOR_ALGO_H_ */

View File

@ -51,7 +51,7 @@ void initTriggerEmulator(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_S) {
&boardConfiguration->triggerSimulatorPinModes[2]); &boardConfiguration->triggerSimulatorPinModes[2]);
#endif /* EFI_PROD_CODE */ #endif /* EFI_PROD_CODE */
initTriggerEmulatorLogic(sharedLogger, engine); initTriggerEmulatorLogic(sharedLogger);
#else #else
print("No position sensor(s) emulation\r\n"); print("No position sensor(s) emulation\r\n");
#endif /* EFI_EMULATE_POSITION_SENSORS */ #endif /* EFI_EMULATE_POSITION_SENSORS */