Starter seems to be engaged forever #1965
This commit is contained in:
parent
f0d93428e4
commit
e29911114a
|
@ -50,10 +50,6 @@ static Logging *logger;
|
|||
|
||||
EXTERN_ENGINE;
|
||||
|
||||
#if EFI_UNIT_TEST
|
||||
Engine *unitTestEngine;
|
||||
#endif
|
||||
|
||||
// todo: move all static vars to engine->engineState.idle?
|
||||
|
||||
static bool shouldResetPid = false;
|
||||
|
@ -74,7 +70,6 @@ class PidWithOverrides : public PidIndustrial {
|
|||
public:
|
||||
float getOffset() const override {
|
||||
#if EFI_UNIT_TEST
|
||||
Engine *engine = unitTestEngine;
|
||||
EXPAND_Engine;
|
||||
#endif
|
||||
float result = parameters->offset;
|
||||
|
@ -88,7 +83,6 @@ public:
|
|||
|
||||
float getMinValue() const override {
|
||||
#if EFI_UNIT_TEST
|
||||
Engine *engine = unitTestEngine;
|
||||
EXPAND_Engine;
|
||||
#endif
|
||||
float result = parameters->minValue;
|
||||
|
|
|
@ -19,13 +19,9 @@
|
|||
extern IdleController idleControllerInstance;
|
||||
extern int timeNowUs;
|
||||
|
||||
extern Engine *unitTestEngine;
|
||||
|
||||
TEST(idle, fsioPidParameters) {
|
||||
WITH_ENGINE_TEST_HELPER(MIATA_NA6_MAP);
|
||||
|
||||
unitTestEngine = engine;
|
||||
|
||||
engineConfiguration->idleRpmPid.offset = 40;
|
||||
engineConfiguration->acIdleExtraOffset = 10;
|
||||
|
||||
|
|
Loading…
Reference in New Issue