diff --git a/firmware/controllers/algo/engine.h b/firmware/controllers/algo/engine.h index 15cf8a76ec..7d4f49368d 100644 --- a/firmware/controllers/algo/engine.h +++ b/firmware/controllers/algo/engine.h @@ -201,9 +201,8 @@ public: GearControllerBase *gearController; #if EFI_LAUNCH_CONTROL LaunchControlBase launchController; -#endif // EFI_LAUNCH_CONTROL - SoftSparkLimiter softSparkLimiter; +#endif // EFI_LAUNCH_CONTROL #if EFI_BOOST_CONTROL BoostController boostController; diff --git a/firmware/controllers/lua/lua_hooks.cpp b/firmware/controllers/lua/lua_hooks.cpp index 6d50b80b79..322009fef6 100644 --- a/firmware/controllers/lua/lua_hooks.cpp +++ b/firmware/controllers/lua/lua_hooks.cpp @@ -497,11 +497,13 @@ void configureRusefiLuaHooks(lua_State* l) { return 1; }); +#if EFI_LAUNCH_CONTROL lua_register(l, "setSparkSkipRatio", [](lua_State* l) { auto targetSkipRatio = luaL_checknumber(l, 1); engine->softSparkLimiter.setTargetSkipRatio(targetSkipRatio); return 1; }); +#endif // EFI_LAUNCH_CONTROL lua_register(l, "enableCanTx", [](lua_State* l) { engine->allowCanTx = lua_toboolean(l, 1);