lua reads stale output values fix #5579

This commit is contained in:
Andrey 2023-09-24 18:48:02 -04:00
parent d730ad08fa
commit 2c78ae027d
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ void configureRusefiLuaHooks(lua_State* l) {
return 1;
});
#if EFI_PROD_CODE || EFI_SIMULATOR
#if EFI_TUNER_STUDIO && (EFI_PROD_CODE || EFI_SIMULATOR)
lua_register(l, "getOutput", [](lua_State* l) {
auto propertyName = luaL_checklstring(l, 1, nullptr);
// fresh values need to be requested explicitly, there is no periodic invocation of that method