From ca008272792b1e6dd1aa1a9d7425c5807bdd575a Mon Sep 17 00:00:00 2001 From: Torgny Bjers Date: Sat, 22 Oct 2022 19:00:53 -0400 Subject: [PATCH] fix partial buffer size --- src/Inkplate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Inkplate.cpp b/src/Inkplate.cpp index 1f9b9231..4c13bcbb 100644 --- a/src/Inkplate.cpp +++ b/src/Inkplate.cpp @@ -77,7 +77,7 @@ void Inkplate::display(bool leaveOn) */ void Inkplate::preloadScreen() { - memcpy(DMemoryNew, _partial, 60000); + memcpy(DMemoryNew, _partial, E_INK_WIDTH * E_INK_HEIGHT / 8); } /**