Fix lcd.RGB()
It does not require access to lcd, so let's not check that.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user