Removed necessity for lcd allowance in lcd.setColor() and lcd.getColor()

This commit is contained in:
Raphael Coeffic
2021-06-15 16:24:54 +02:00
parent b8511a2b22
commit 60517df349
-6
View File
@@ -783,9 +783,6 @@ Set a color for specific area
*/
static int luaLcdSetColor(lua_State *L)
{
if (!luaLcdAllowed)
return 0;
unsigned int index = luaL_checkunsigned(L, 1) >> 16;
unsigned int color = luaL_checkunsigned(L, 2);
@@ -806,9 +803,6 @@ Get the color for specific area : see lcd.setColor for area list
static int luaLcdGetColor(lua_State *L)
{
if (!luaLcdAllowed)
return 0;
unsigned int index = luaL_checkunsigned(L, 1) >> 16;
lua_pushunsigned(L, lcdColorTable[index]);