Starter seems to be engaged forever #1965

This commit is contained in:
rusefillc 2020-11-18 20:53:03 -05:00
parent 88a0b56cba
commit 7f688f7616
2 changed files with 7 additions and 3 deletions

View File

@ -219,9 +219,9 @@ static void resetAccel(void) {
static void doPeriodicSlowCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
#if EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT
efiAssertVoid(CUSTOM_ERR_6661, getCurrentRemainingStack() > 64, "lowStckOnEv");
#if EFI_PROD_CODE
slowStartStopButtonCallback(PASS_ENGINE_PARAMETER_SIGNATURE);
#endif /* EFI_PROD_CODE */
efitick_t nowNt = getTimeNowNt();

View File

@ -11,5 +11,9 @@
TEST(start, startStop) {
WITH_ENGINE_TEST_HELPER(BMW_M73_PROTEUS);
// this is a pull-up, so 'true' on start-up
setMockState(engineConfiguration->starterControlPin, true PASS_ENGINE_PARAMETER_SUFFIX);
setMockState(engineConfiguration->startStopButtonPin, true PASS_ENGINE_PARAMETER_SUFFIX);
ASSERT_EQ(efiReadPin(engineConfiguration->starterControlPin), 0);
slowStartStopButtonCallback(PASS_ENGINE_PARAMETER_SIGNATURE);
}