mirror of https://github.com/rusefi/rusefi.git
set_lua_setting
This commit is contained in:
parent
e7a1faccc6
commit
9c72e22f23
|
@ -400,6 +400,10 @@ void startLua() {
|
||||||
initLuaCanRx();
|
initLuaCanRx();
|
||||||
#endif // EFI_CAN_SUPPORT
|
#endif // EFI_CAN_SUPPORT
|
||||||
|
|
||||||
|
addConsoleActionII("set_lua_setting", [](int index, int value) {
|
||||||
|
engineConfiguration->scriptSetting[index] = value;
|
||||||
|
});
|
||||||
|
|
||||||
luaThread.start();
|
luaThread.start();
|
||||||
|
|
||||||
addConsoleActionS("lua", [](const char* str){
|
addConsoleActionS("lua", [](const char* str){
|
||||||
|
|
|
@ -888,10 +888,6 @@ void configureRusefiLuaHooks(lua_State* lState) {
|
||||||
return 1;
|
return 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
addConsoleActionII("set_lua_setting", [](int index, int value) {
|
|
||||||
engineConfiguration->scriptSetting[index] = value;
|
|
||||||
});
|
|
||||||
|
|
||||||
#if EFI_BOOST_CONTROL
|
#if EFI_BOOST_CONTROL
|
||||||
lua_register(lState, "setBoostTargetAdd", [](lua_State* l) {
|
lua_register(lState, "setBoostTargetAdd", [](lua_State* l) {
|
||||||
engine->module<BoostController>().unmock().luaTargetAdd = luaL_checknumber(l, 1);
|
engine->module<BoostController>().unmock().luaTargetAdd = luaL_checknumber(l, 1);
|
||||||
|
|
Loading…
Reference in New Issue