Fix lcd.RGB()

It does not require access to lcd, so let's not check that.
This commit is contained in:
Raphael Coeffic
2021-06-15 16:19:43 +02:00
parent 95c65772e4
commit b8511a2b22
-3
View File
@@ -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) static int luaRGB(lua_State *L)
{ {
if (!luaLcdAllowed)
return 0;
int r = luaL_checkinteger(L, 1); int r = luaL_checkinteger(L, 1);
int g = luaL_checkinteger(L, 2); int g = luaL_checkinteger(L, 2);
int b = luaL_checkinteger(L, 3); int b = luaL_checkinteger(L, 3);