color_lcd: fixed lcd.clear()

This commit is contained in:
yaapu
2021-06-05 20:29:54 +02:00
committed by Raphael Coeffic
parent d921e413e3
commit e9b699f6e2
+1 -1
View File
@@ -61,7 +61,7 @@ static int luaLcdClear(lua_State * L)
{
if (luaLcdAllowed && luaLcdBuffer) {
LcdFlags color = luaL_optunsigned(L, 1, DEFAULT_BGCOLOR);
luaLcdBuffer->clear(color);
luaLcdBuffer->clear(COLOR(COLOR_VAL(color)));
}
return 0;
}