From 588ad5c5e203c8d60d746f7edaa8f5eb89080818 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 1 Jul 2023 20:50:21 -0700 Subject: [PATCH] only get outputs in non-test land --- firmware/controllers/lua/lua_hooks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/controllers/lua/lua_hooks.cpp b/firmware/controllers/lua/lua_hooks.cpp index 3adc99699d..43d595df90 100644 --- a/firmware/controllers/lua/lua_hooks.cpp +++ b/firmware/controllers/lua/lua_hooks.cpp @@ -808,12 +808,14 @@ void configureRusefiLuaHooks(lua_State* l) { return 1; }); +#if EFI_PROD_CODE || EFI_SIMULATOR lua_register(l, "getOutput", [](lua_State* l) { auto propertyName = luaL_checklstring(l, 1, nullptr); auto result = getOutputValueByName(propertyName); lua_pushnumber(l, result); return 1; }); +#endif // EFI_PROD_CODE || EFI_SIMULATOR #if EFI_SHAFT_POSITION_INPUT lua_register(l, "getEngineState", [](lua_State* l) {