From 129bbe21985f5fc60a0f500583d7ebf407362fb0 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 7 Jul 2017 23:38:11 +0200 Subject: [PATCH] Fix getcurve reporting 0 as first x value instead of -100 --- radio/src/lua/api_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/lua/api_model.cpp b/radio/src/lua/api_model.cpp index 2278261e0..0dbd3c05e 100644 --- a/radio/src/lua/api_model.cpp +++ b/radio/src/lua/api_model.cpp @@ -833,7 +833,7 @@ static int luaModelGetCurve(lua_State *L) lua_pushstring(L, "x"); lua_newtable(L); lua_pushinteger(L, 0); - lua_pushinteger(L, 0); + lua_pushinteger(L, -100); lua_settable(L, -3); for (int i=0; i < curveData.points + 3; i++) { lua_pushinteger(L, i+1);