diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c')
-rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c index 60a32b510b..379869f2b4 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c | |||
@@ -435,7 +435,7 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
435 | } /* lcd_update_rect */ | 435 | } /* lcd_update_rect */ |
436 | 436 | ||
437 | /* writes one read pixel outside the visible area, needed for correct dbop reads */ | 437 | /* writes one read pixel outside the visible area, needed for correct dbop reads */ |
438 | void lcd_button_support(void) | 438 | bool lcd_button_support(void) |
439 | { | 439 | { |
440 | int x=LCD_HEIGHT+1; | 440 | int x=LCD_HEIGHT+1; |
441 | int y=LCD_WIDTH+1; | 441 | int y=LCD_WIDTH+1; |
@@ -444,7 +444,7 @@ void lcd_button_support(void) | |||
444 | unsigned short data = (0xf<<12); | 444 | unsigned short data = (0xf<<12); |
445 | 445 | ||
446 | if (lcd_busy) | 446 | if (lcd_busy) |
447 | return; | 447 | return false; |
448 | 448 | ||
449 | lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ); | 449 | lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ); |
450 | /* Set start position and window */ | 450 | /* Set start position and window */ |
@@ -457,4 +457,5 @@ void lcd_button_support(void) | |||
457 | lcd_write_cmd(R_WRITE_DATA_2_GRAM); | 457 | lcd_write_cmd(R_WRITE_DATA_2_GRAM); |
458 | 458 | ||
459 | lcd_write_data(&data, width); | 459 | lcd_write_data(&data, width); |
460 | return true; | ||
460 | } | 461 | } |