Skip to content

Commit de12a6b

Browse files
committed
SSD1306 fix MODE_VERT
1 parent 64a2af3 commit de12a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/parts/ssd1306_virt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ ssd1306_write_data (ssd1306_t *part)
4242
case SSD1306_ADDR_MODE_VERT:
4343
if (++(part->cursor.page) > part->write_cursor_end.page)
4444
{
45-
part->cursor.page = part->write_cursor_start.column;
45+
part->cursor.page = part->write_cursor_start.page;
4646
if (++(part->cursor.column) > part->write_cursor_end.column)
4747
{
48-
part->cursor.column = part->write_cursor_start.page;
48+
part->cursor.column = part->write_cursor_start.column;
4949
}
5050
}
5151
break;

0 commit comments

Comments
 (0)