diff --git a/firmware/controllers/lua/lua_hooks.cpp b/firmware/controllers/lua/lua_hooks.cpp index 13858f5052..baa739f705 100644 --- a/firmware/controllers/lua/lua_hooks.cpp +++ b/firmware/controllers/lua/lua_hooks.cpp @@ -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);