| Line | Branch | Decision | Exec | Source |
|---|---|---|---|---|
| 1 | /* | |||
| 2 | * @file shutdown_controller.cpp | |||
| 3 | * | |||
| 4 | */ | |||
| 5 | ||||
| 6 | #include "pch.h" | |||
| 7 | ||||
| 8 | ✗ | void doScheduleStopEngine(StopRequestedReason reason) { | ||
| 9 | #if EFI_SHAFT_POSITION_INPUT | |||
| 10 | ✗ | efiPrintf("Let's stop this engine!"); | ||
| 11 | ✗ | getLimpManager()->shutdownController.stopEngine(reason); | ||
| 12 | #endif // EFI_SHAFT_POSITION_INPUT | |||
| 13 | // todo: initiate stepper motor parking | |||
| 14 | // make sure we have stored all the info | |||
| 15 | #if EFI_PROD_CODE | |||
| 16 | //todo: FIX kinetis build with this line | |||
| 17 | //backupRamFlush(); | |||
| 18 | #endif // EFI_PROD_CODE | |||
| 19 | ✗ | } | ||
| 20 | ||||
| 21 | ✗ | void ShutdownController::stopEngine(StopRequestedReason reason) { | ||
| 22 | ✗ | m_engineStopTimer.reset(); | ||
| 23 | ✗ | engine->outputChannels.stopEngineCode = (uint8_t)reason; | ||
| 24 | ✗ | } | ||
| 25 |