Skip to content

Commit fada4f7

Browse files
committed
Fix TEXT_COLOR bug
TEXT_COLOR is not a thing on the radios with low resolution screen.
1 parent 48c39d3 commit fada4f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SCRIPTS/BF/radios.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ local supportedRadios =
3434
resolution = lcdResolution.high,
3535
MenuBox = { x=120, y=100, w=200, x_offset=68, h_line=20, h_offset=6 },
3636
SaveBox = { x=120, y=100, w=180, x_offset=12, h=60, h_offset=12 },
37-
NoTelem = { 192, LCD_H - 28, "No Telemetry", TEXT_COLOR + INVERS + BLINK },
37+
NoTelem = { 192, LCD_H - 28, "No Telemetry", (TEXT_COLOR or 0) + INVERS + BLINK },
3838
textSize = 0,
3939
yMinLimit = 35,
4040
yMaxLimit = 235,
@@ -45,7 +45,7 @@ local supportedRadios =
4545
resolution = lcdResolution.high,
4646
MenuBox = { x= (LCD_W -200)/2, y=LCD_H/2, w=200, x_offset=68, h_line=20, h_offset=6 },
4747
SaveBox = { x= (LCD_W -200)/2, y=LCD_H/2, w=180, x_offset=12, h=60, h_offset=12 },
48-
NoTelem = { LCD_W/2 - 50, LCD_H - 28, "No Telemetry", TEXT_COLOR + INVERS + BLINK },
48+
NoTelem = { LCD_W/2 - 50, LCD_H - 28, "No Telemetry", (TEXT_COLOR or 0) + INVERS + BLINK },
4949
textSize = 0,
5050
yMinLimit = 35,
5151
yMaxLimit = 435,

0 commit comments

Comments
 (0)