Skip to content

Commit 007de2c

Browse files
committed
LCD: Completely blank display when backlight is off.
Refs #774
1 parent 410a720 commit 007de2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/display/lcd_at32f435.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static unsigned int lcd_prep_buffer(void)
290290
order = ff_cfg.display_order;
291291

292292
row = (order >> (i2c_row * DORD_shift)) & DORD_row;
293-
p = (row < ARRAY_SIZE(text)) ? text[row] : NULL;
293+
p = (_bl && row < ARRAY_SIZE(text)) ? text[row] : NULL;
294294

295295
emit8(&q, CMD_SETDDRADDR | row_offs[i2c_row], 0);
296296
for (i = 0; i < lcd_columns; i++)

src/display/lcd_stm32f105.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ static unsigned int lcd_prep_buffer(void)
327327
order = ff_cfg.display_order;
328328

329329
row = (order >> (i2c_row * DORD_shift)) & DORD_row;
330-
p = (row < ARRAY_SIZE(text)) ? text[row] : NULL;
330+
p = (_bl && row < ARRAY_SIZE(text)) ? text[row] : NULL;
331331

332332
emit8(&q, CMD_SETDDRADDR | row_offs[i2c_row], 0);
333333
for (i = 0; i < lcd_columns; i++)

0 commit comments

Comments
 (0)