File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ static unsigned int lcd_prep_buffer(void)
290
290
order = ff_cfg .display_order ;
291
291
292
292
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 ;
294
294
295
295
emit8 (& q , CMD_SETDDRADDR | row_offs [i2c_row ], 0 );
296
296
for (i = 0 ; i < lcd_columns ; i ++ )
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ static unsigned int lcd_prep_buffer(void)
327
327
order = ff_cfg .display_order ;
328
328
329
329
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 ;
331
331
332
332
emit8 (& q , CMD_SETDDRADDR | row_offs [i2c_row ], 0 );
333
333
for (i = 0 ; i < lcd_columns ; i ++ )
You can’t perform that action at this time.
0 commit comments