mirror of https://github.com/rusefi/rusefi.git
parent
7c783e764c
commit
525570f896
|
@ -52,7 +52,7 @@ static void disengageStarterIfNeeded() {
|
|||
void slowStartStopButtonCallback() {
|
||||
if (!isIgnVoltage()) {
|
||||
engine->startStopState.timeSinceIgnitionPower.reset();
|
||||
// return;
|
||||
return;
|
||||
} else if (engine->startStopState.isFirstTime) {
|
||||
engine->startStopState.isFirstTime = false;
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
TEST(start, startStop) {
|
||||
std::unordered_map<SensorType, float> sensorVals = {{ SensorType::AcceleratorPedal, 0 }};
|
||||
EngineTestHelper eth(engine_type_e::PROTEUS_BMW_M73, sensorVals);
|
||||
Sensor::setMockValue(SensorType::BatteryVoltage, 15);
|
||||
eth.moveTimeForwardAndInvokeEventsSec(1); // '0' time has special meaning for implementation so let's move forward
|
||||
|
||||
// pull-up means inverted value
|
||||
|
|
Loading…
Reference in New Issue