only:better order of operations

This commit is contained in:
rusefillc 2023-11-17 15:33:06 -05:00
parent 84b4839f5e
commit a2518197b5
1 changed files with 2 additions and 2 deletions

View File

@ -419,7 +419,7 @@ static void assertTimeIsLinear() {
}
void Engine::efiWatchdog() {
#if EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT
assertTimeIsLinear();
if (isRunningPwmTest)
return;
@ -427,7 +427,7 @@ void Engine::efiWatchdog() {
return;
}
assertTimeIsLinear();
#if EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT
if (!getTriggerCentral()->isSpinningJustForWatchdog) {
if (!isRunningBenchTest() && enginePins.stopPins()) {