From 1e4470a007ce8311036e24cc1d330bfbcd17c827 Mon Sep 17 00:00:00 2001 From: 3djc Date: Sat, 8 Oct 2016 12:04:48 +0200 Subject: [PATCH] Revert commit 7c6dd36ee18aff219da777151245c5a8dee44e5c, which was preventing LEFT even when specified --- radio/src/lua/api_lcd.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/radio/src/lua/api_lcd.cpp b/radio/src/lua/api_lcd.cpp index 315e15602..d9c23ddfe 100644 --- a/radio/src/lua/api_lcd.cpp +++ b/radio/src/lua/api_lcd.cpp @@ -216,7 +216,6 @@ Display a number at (x,y) * `PREC1` display with one decimal place (number 386 is displayed as 38.6) * `PREC2` display with tow decimal places (number 386 is displayed as 3.86) * other general LCD flag also apply - * default alignement is RIGHT @status current Introduced in 2.0.0 */ @@ -227,7 +226,6 @@ static int luaLcdDrawNumber(lua_State *L) int y = luaL_checkinteger(L, 2); int val = luaL_checkinteger(L, 3); unsigned int att = luaL_optunsigned(L, 4, 0); - if (!(att & LEFT)) att |= RIGHT; lcdDrawNumber(x, y, val, att); return 0; }