only:harley
This commit is contained in:
parent
3404492d5b
commit
fb860c0162
|
@ -742,7 +742,7 @@ bool TriggerCentral::isToothExpectedNow(efitick_t timestamp) {
|
|||
return true;
|
||||
}
|
||||
|
||||
BOARD_WEAK bool boardAllowTriggerAcrIntegration() { return true; }
|
||||
BOARD_WEAK bool boardAllowTriggerActions() { return true; }
|
||||
|
||||
/**
|
||||
* This method is NOT invoked for VR falls.
|
||||
|
@ -773,14 +773,17 @@ void TriggerCentral::handleShaftSignal(trigger_event_e signal, efitick_t timesta
|
|||
|
||||
isSpinningJustForWatchdog = true;
|
||||
|
||||
bool firstEventInAWhile = m_lastEventTimer.hasElapsedSec(1);
|
||||
m_lastEventTimer.reset(timestamp);
|
||||
if (firstEventInAWhile) {
|
||||
#if EFI_HD_ACR
|
||||
bool firstEventInAWhile = m_lastEventTimer.hasElapsedSec(1);
|
||||
if (firstEventInAWhile) {
|
||||
// let's open that valve on first sign of movement
|
||||
engine->module<HarleyAcr>()->updateAcr();
|
||||
#endif // EFI_HD_ACR
|
||||
}
|
||||
#endif // EFI_HD_ACR
|
||||
|
||||
if (boardAllowTriggerActions()) {
|
||||
m_lastEventTimer.reset(timestamp);
|
||||
}
|
||||
|
||||
int eventIndex = (int) signal;
|
||||
efiAssertVoid(ObdCode::CUSTOM_TRIGGER_EVENT_TYPE, eventIndex >= 0 && eventIndex < HW_EVENT_TYPES, "signal type");
|
||||
|
|
Loading…
Reference in New Issue