From 87fc5eff267e1e29b8b8cafee6cf4dc7076415ea Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Mon, 24 Apr 2023 16:24:33 -0700 Subject: [PATCH] Re-enable partial updates when available --- shared-module/displayio/EPaperDisplay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared-module/displayio/EPaperDisplay.c b/shared-module/displayio/EPaperDisplay.c index 2f6c8fa5c9..e79c692766 100644 --- a/shared-module/displayio/EPaperDisplay.c +++ b/shared-module/displayio/EPaperDisplay.c @@ -139,7 +139,8 @@ STATIC const displayio_area_t *displayio_epaperdisplay_get_refresh_areas(display if (self->core.current_group != NULL) { first_area = displayio_group_get_refresh_areas(self->core.current_group, NULL); } - if (first_area != NULL) { + if (first_area != NULL && self->core.row_command == NO_COMMAND) { + // Do a full refresh if the display doesn't support partial updates. self->core.area.next = NULL; return &self->core.area; }