Starter seems to be engaged forever #1965

This commit is contained in:
rusefillc 2020-11-18 20:01:02 -05:00
parent f0d93428e4
commit e29911114a
2 changed files with 0 additions and 10 deletions

View File

@ -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;

View File

@ -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;