diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuze')
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c index 2b7ce4888d..b99621b3ac 100644 --- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c +++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c | |||
@@ -119,13 +119,13 @@ void lcd_write_data(const fb_data* p_bytes, int count) | |||
119 | /* Wait if push fifo is full */ | 119 | /* Wait if push fifo is full */ |
120 | while ((DBOP_STAT & (1<<6)) != 0); | 120 | while ((DBOP_STAT & (1<<6)) != 0); |
121 | } | 121 | } |
122 | /* due to the 32bit alignment requirement, we possibly need to do a | ||
123 | * 16bit transfer at the end also */ | ||
124 | if (count > 0) | ||
125 | lcd_write_single_data16(*(fb_data*)data); | ||
126 | |||
127 | /* While push fifo is not empty */ | 122 | /* While push fifo is not empty */ |
128 | while ((DBOP_STAT & (1<<10)) == 0); | 123 | while ((DBOP_STAT & (1<<10)) == 0); |
124 | |||
125 | /* due to the 32bit alignment requirement or uneven count, | ||
126 | * we possibly need to do a 16bit transfer at the end also */ | ||
127 | if (count > 0) | ||
128 | lcd_write_single_data16(*(fb_data*)data); | ||
129 | } | 129 | } |
130 | 130 | ||
131 | static void lcd_write_reg(int reg, int value) | 131 | static void lcd_write_reg(int reg, int value) |