From 80eb34cea20dc6561fd3204373f4a8c928d7fcd3 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Sat, 20 Sep 2014 11:33:48 +0200 Subject: [PATCH] Fixes #1714: getting radio setting of imperial or metric in lua --- radio/src/lua.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/radio/src/lua.cpp b/radio/src/lua.cpp index dbc5a9d5d..d700879bf 100644 --- a/radio/src/lua.cpp +++ b/radio/src/lua.cpp @@ -342,6 +342,7 @@ static int luaGetGeneralSettings(lua_State *L) lua_newtable(L); lua_pushtablenumber(L, "battMin", double(90+g_eeGeneral.vBatMin)/10); lua_pushtablenumber(L, "battMax", double(120+g_eeGeneral.vBatMax)/10); + lua_pushtableinteger(L, "imperial", g_eeGeneral.imperial); return 1; }