summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c')
-rw-r--r--firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
index 7443426c25..44451133ca 100644
--- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
+++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
@@ -347,11 +347,11 @@ void lcd_update_rect(int x, int y, int width, int height)
347} 347}
348 348
349/* writes one read pixel outside the visible area, needed for correct dbop reads */ 349/* writes one read pixel outside the visible area, needed for correct dbop reads */
350void lcd_button_support(void) 350bool lcd_button_support(void)
351{ 351{
352 fb_data data = 0xf<<12; 352 fb_data data = 0xf<<12;
353 if (lcd_busy) 353 if (lcd_busy)
354 return; 354 return false;
355 lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ); 355 lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
356 /* Set start position and window */ 356 /* Set start position and window */
357 357
@@ -359,4 +359,6 @@ void lcd_button_support(void)
359 lcd_write_cmd(R_WRITE_DATA_2_GRAM); 359 lcd_write_cmd(R_WRITE_DATA_2_GRAM);
360 360
361 lcd_write_data(&data, 1); 361 lcd_write_data(&data, 1);
362
363 return true;
362} 364}