This commit is contained in:
rusefillc 2023-01-02 18:06:38 -05:00
parent 93d20f33ec
commit a19a7120df
3 changed files with 9 additions and 0 deletions

View File

@ -35,6 +35,7 @@ Release template (copy/paste this for new release):
- RPM correction/multiplier for Accel Enrich #4760
- Tooth logger writes to SD card #4897
- Antilag #2403
- Lua 'setIgnDisabled' function for all kinds of cranking safety systems
## December 2022 Release - "Day 289"

View File

@ -49,6 +49,10 @@ void LimpManager::updateState(int rpm, efitick_t nowNt) {
}
#endif
if (engine->engineState.lua.luaIgnCut) {
allowSpark.clear(ClearReason::Lua);
}
{
// User-configured hard RPM limit, either constant or CLT-lookup
// todo: migrate to engineState->desiredRpmLimit to get this variable logged

View File

@ -780,6 +780,10 @@ void configureRusefiLuaHooks(lua_State* l) {
engine->engineState.lua.luaDisableEtb = lua_toboolean(l, 1);
return 0;
});
lua_register(l, "setIgnDisabled", [](lua_State* l) {
engine->engineState.lua.luaIgnCut = lua_toboolean(l, 1);
return 0;
});
#endif // EFI_PROD_CODE
lua_register(l, "setClutchUpState", [](lua_State* l) {