mirror of https://github.com/rusefi/rusefi-1.git
LUA read ECU state: Cranking, Idling, Cruising #3742
This commit is contained in:
parent
c66dcaf454
commit
cc115d651f
|
@ -568,13 +568,13 @@ void configureRusefiLuaHooks(lua_State* l) {
|
|||
} else if (state == RUNNING) {
|
||||
luaStateCode = 2;
|
||||
} else {
|
||||
// spinning-up or cranking
|
||||
luaStateCode = 1;
|
||||
}
|
||||
lua_pushnumber(l, luaStateCode);
|
||||
return 1;
|
||||
});
|
||||
|
||||
|
||||
lua_register(l, "setCalibration", [](lua_State* l) {
|
||||
auto propertyName = luaL_checklstring(l, 1, nullptr);
|
||||
auto value = luaL_checknumber(l, 2);
|
||||
|
|
Loading…
Reference in New Issue