Skip to content

Commit 87fc5ef

Browse files
committed
Re-enable partial updates when available
1 parent b160378 commit 87fc5ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shared-module/displayio/EPaperDisplay.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ STATIC const displayio_area_t *displayio_epaperdisplay_get_refresh_areas(display
139139
if (self->core.current_group != NULL) {
140140
first_area = displayio_group_get_refresh_areas(self->core.current_group, NULL);
141141
}
142-
if (first_area != NULL) {
142+
if (first_area != NULL && self->core.row_command == NO_COMMAND) {
143+
// Do a full refresh if the display doesn't support partial updates.
143144
self->core.area.next = NULL;
144145
return &self->core.area;
145146
}

0 commit comments

Comments
 (0)