migrating to SensorType::Rpm API
This commit is contained in:
parent
c7a62bcdb3
commit
5feab6f6c3
|
@ -113,7 +113,7 @@ void LogTriggerTooth(trigger_event_e tooth, efitick_t timestamp) {
|
|||
}
|
||||
|
||||
// Don't log at significant engine speed
|
||||
if (engine->rpmCalculator.getRpm() > engineConfiguration->engineSnifferRpmThreshold) {
|
||||
if (Sensor::getOrZero(SensorType::Rpm) > engineConfiguration->engineSnifferRpmThreshold) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -306,7 +306,7 @@ void runHardcodedFsio() {
|
|||
|
||||
// see STARTER_RELAY_LOGIC
|
||||
if (isBrainPinValid(engineConfiguration->starterRelayDisablePin)) {
|
||||
enginePins.starterRelayDisable.setValue(engine->rpmCalculator.getRpm() < engineConfiguration->cranking.rpm);
|
||||
enginePins.starterRelayDisable.setValue(Sensor::getOrZero(SensorType::Rpm) < engineConfiguration->cranking.rpm);
|
||||
}
|
||||
|
||||
enginePins.o2heater.setValue(engine->rpmCalculator.isRunning());
|
||||
|
|
Loading…
Reference in New Issue