EFI_LAUNCH_CONTROL clean-up

This commit is contained in:
rusefi 2022-02-06 18:46:09 -05:00
parent c50bf8666b
commit 998cba5521
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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);