EFI_LAUNCH_CONTROL clean-up
This commit is contained in:
parent
c50bf8666b
commit
998cba5521
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue