engine stop hook (#2760)

This commit is contained in:
Matthew Kennedy 2021-05-29 15:54:36 -06:00 committed by GitHub
parent c81b01b47a
commit b5bd527a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -169,6 +169,12 @@ static int lua_setDebug(lua_State* l) {
return 0;
}
static int lua_stopEngine(lua_State* l) {
doScheduleStopEngine();
return 0;
}
#endif // EFI_UNIT_TEST
void configureRusefiLuaHooks(lua_State* l) {
@ -186,5 +192,7 @@ void configureRusefiLuaHooks(lua_State* l) {
lua_register(l, "getFan", lua_fan);
lua_register(l, "getDigital", lua_getDigital);
lua_register(l, "setDebug", lua_setDebug);
lua_register(l, "stopEngine", lua_stopEngine);
#endif
}