removing one dead line
This commit is contained in:
parent
0653f38721
commit
a338f28396
|
@ -4,11 +4,10 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @date Feb 9, 2013
|
* @date Feb 9, 2013
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2017
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MAIN_LOOP_H_
|
#pragma once
|
||||||
#define MAIN_LOOP_H_
|
|
||||||
|
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
|
|
||||||
|
@ -27,9 +26,5 @@ void endSimultaniousInjection(InjectionEvent *event);
|
||||||
void seTurnPinHigh(InjectionEvent *event);
|
void seTurnPinHigh(InjectionEvent *event);
|
||||||
void seTurnPinLow(InjectionEvent *event);
|
void seTurnPinLow(InjectionEvent *event);
|
||||||
|
|
||||||
float getFuel(int rpm, float key);
|
|
||||||
|
|
||||||
// reset injection switch counter if the engine started spinning
|
// reset injection switch counter if the engine started spinning
|
||||||
void updatePrimeInjectionPulseState(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
void updatePrimeInjectionPulseState(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||||
|
|
||||||
#endif /* MAIN_LOOP_H_ */
|
|
||||||
|
|
|
@ -315,6 +315,7 @@ static void tdcMarkCallback(trigger_event_e ckpSignalType,
|
||||||
(void) ckpSignalType;
|
(void) ckpSignalType;
|
||||||
bool isTriggerSynchronizationPoint = index0 == 0;
|
bool isTriggerSynchronizationPoint = index0 == 0;
|
||||||
if (isTriggerSynchronizationPoint && ENGINE(isEngineChartEnabled)) {
|
if (isTriggerSynchronizationPoint && ENGINE(isEngineChartEnabled)) {
|
||||||
|
// two instances of scheduling_s are needed to properly handle event overlap
|
||||||
int revIndex2 = getRevolutionCounter() % 2;
|
int revIndex2 = getRevolutionCounter() % 2;
|
||||||
int rpm = GET_RPM();
|
int rpm = GET_RPM();
|
||||||
// todo: use tooth event-based scheduling, not just time-based scheduling
|
// todo: use tooth event-based scheduling, not just time-based scheduling
|
||||||
|
|
|
@ -3,11 +3,10 @@
|
||||||
* @brief Shaft position sensor(s) decoder header
|
* @brief Shaft position sensor(s) decoder header
|
||||||
*
|
*
|
||||||
* @date Jan 1, 2013
|
* @date Jan 1, 2013
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2017
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef RPM_REPORTER_H_
|
#pragma once
|
||||||
#define RPM_REPORTER_H_
|
|
||||||
|
|
||||||
#include "globalaccess.h"
|
#include "globalaccess.h"
|
||||||
#include "scheduler.h"
|
#include "scheduler.h"
|
||||||
|
@ -168,4 +167,3 @@ float getCrankshaftAngleNt(efitick_t timeNt DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
void scheduleByAngle(scheduling_s *timer, angle_t angle, schfunc_t callback, void *param DECLARE_ENGINE_PARAMETER_SUFFIX);
|
void scheduleByAngle(scheduling_s *timer, angle_t angle, schfunc_t callback, void *param DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
#endif /* RPM_REPORTER_H_ */
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @file spark_logic.h
|
* @file spark_logic.h
|
||||||
*
|
*
|
||||||
* @date Sep 15, 2016
|
* @date Sep 15, 2016
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2017
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
Loading…
Reference in New Issue