diff options
Diffstat (limited to 'firmware/target/arm/as3525/lcd-ssd1303.c')
-rw-r--r-- | firmware/target/arm/as3525/lcd-ssd1303.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/lcd-ssd1303.c b/firmware/target/arm/as3525/lcd-ssd1303.c index 213f12a424..9fcc85d243 100644 --- a/firmware/target/arm/as3525/lcd-ssd1303.c +++ b/firmware/target/arm/as3525/lcd-ssd1303.c @@ -273,7 +273,7 @@ void lcd_update(void) lcd_write_command (LCD_CNTL_HIGHCOL | ((offset >> 4) & 0xf)); lcd_write_command (LCD_CNTL_LOWCOL | (offset & 0xf)); - lcd_write_data (lcd_framebuffer[y], LCD_WIDTH); + lcd_write_data (FBADDR(0, y), LCD_WIDTH); } } @@ -304,6 +304,6 @@ void lcd_update_rect(int x, int y, int width, int height) lcd_write_command (LCD_CNTL_HIGHCOL | (((x+offset) >> 4) & 0xf)); lcd_write_command (LCD_CNTL_LOWCOL | ((x+offset) & 0xf)); - lcd_write_data (&lcd_framebuffer[y][x], width); + lcd_write_data (FBADDR(x,y), width); } } |