auto-sync

This commit is contained in:
rusEfi 2014-11-08 11:03:07 -06:00
parent 5414ac6f71
commit e33424b2e7
3 changed files with 6 additions and 6 deletions

View File

@ -366,7 +366,7 @@ void initEngineContoller(Engine *engine) {
* there is an implicit dependency on the fact that 'tachometer' listener is the 1st listener - this case
* other listeners can access current RPM value
*/
initRpmCalculator();
initRpmCalculator(engine);
#endif /* EFI_SHAFT_POSITION_INPUT */
#if EFI_TUNER_STUDIO

View File

@ -222,7 +222,7 @@ float getCrankshaftAngleNt(uint64_t timeNt) {
return timeSinceZeroAngleNt / getOneDegreeTimeNt(rpmState.rpm());
}
void initRpmCalculator(void) {
void initRpmCalculator(Engine *engine) {
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
initLogging(&logger, "rpm calc");
engine->rpmCalculator = &rpmState;

View File

@ -55,16 +55,16 @@ private:
int getRpmE(Engine *engine);
bool isCrankingE(Engine *engine);
void rpmShaftPositionCallback(trigger_event_e ckpSignalType, uint32_t index, RpmCalculator *rpmState);
/**
* @brief Initialize RPM calculator
*/
void initRpmCalculator(Engine *engine);
#endif
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/**
* @brief Initialize RPM calculator
*/
void initRpmCalculator(void);
bool isCranking(void);
uint64_t getLastRpmEventTime(void);