rusefi/firmware/controllers/shutdown_controller.cpp

20 lines
431 B
C++
Raw Normal View History

2022-09-28 19:42:08 -07:00
/*
* @file shutdown_controller.cpp
*
*/
#include "pch.h"
2022-09-28 19:42:08 -07:00
void doScheduleStopEngine() {
efiPrintf("Starting doScheduleStopEngine");
2023-11-05 08:25:46 -08:00
#if EFI_ENGINE_CONTROL
2022-09-28 19:42:08 -07:00
getLimpManager()->shutdownController.stopEngine();
2023-11-05 08:25:46 -08:00
#endif // EFI_ENGINE_CONTROL
2022-09-28 19:42:08 -07:00
// todo: initiate stepper motor parking
// make sure we have stored all the info
#if EFI_PROD_CODE
//todo: FIX kinetis build with this line
//backupRamFlush();
#endif // EFI_PROD_CODE
}