From b8511a2b2275dc4d777f861ced8557a41e3da9b7 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 15 Jun 2021 16:19:43 +0200 Subject: [PATCH] Fix lcd.RGB() It does not require access to lcd, so let's not check that. --- radio/src/lua/api_colorlcd.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/radio/src/lua/api_colorlcd.cpp b/radio/src/lua/api_colorlcd.cpp index c83229c16..c30d73bb4 100644 --- a/radio/src/lua/api_colorlcd.cpp +++ b/radio/src/lua/api_colorlcd.cpp @@ -834,9 +834,6 @@ Returns a 5/6/5 rgb color code, that can be used with lcd.setColor */ static int luaRGB(lua_State *L) { - if (!luaLcdAllowed) - return 0; - int r = luaL_checkinteger(L, 1); int g = luaL_checkinteger(L, 2); int b = luaL_checkinteger(L, 3);