From 3c316677c3b3886ec9dc3c8ac3f85d6a5ad04036 Mon Sep 17 00:00:00 2001 From: peja13 <39488397+peja13@users.noreply.github.com> Date: Sun, 1 Feb 2026 09:11:51 +0100 Subject: [PATCH] Change Source_Buffer_Length type from UWORD to UDOUBLE Type was too small for big displays (for eample the 7.8inch 1872x1404 display) and so the function WriteMultiData failed. --- Raspberry/lib/e-Paper/EPD_IT8951.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Raspberry/lib/e-Paper/EPD_IT8951.c b/Raspberry/lib/e-Paper/EPD_IT8951.c index 5d74bfc..9f06bf2 100644 --- a/Raspberry/lib/e-Paper/EPD_IT8951.c +++ b/Raspberry/lib/e-Paper/EPD_IT8951.c @@ -397,7 +397,7 @@ function : EPD_IT8951_HostAreaPackedPixelWrite_1bp static void EPD_IT8951_HostAreaPackedPixelWrite_1bp(IT8951_Load_Img_Info*Load_Img_Info,IT8951_Area_Img_Info*Area_Img_Info, bool Packed_Write) { UWORD Source_Buffer_Width, Source_Buffer_Height; - UWORD Source_Buffer_Length; + UDOUBLE Source_Buffer_Length; UWORD* Source_Buffer = (UWORD*)Load_Img_Info->Source_Buffer_Addr; EPD_IT8951_SetTargetMemoryAddr(Load_Img_Info->Target_Memory_Addr); @@ -439,7 +439,7 @@ function : EPD_IT8951_HostAreaPackedPixelWrite_2bp static void EPD_IT8951_HostAreaPackedPixelWrite_2bp(IT8951_Load_Img_Info*Load_Img_Info, IT8951_Area_Img_Info*Area_Img_Info, bool Packed_Write) { UWORD Source_Buffer_Width, Source_Buffer_Height; - UWORD Source_Buffer_Length; + UDOUBLE Source_Buffer_Length; UWORD* Source_Buffer = (UWORD*)Load_Img_Info->Source_Buffer_Addr; EPD_IT8951_SetTargetMemoryAddr(Load_Img_Info->Target_Memory_Addr); @@ -480,7 +480,7 @@ function : EPD_IT8951_HostAreaPackedPixelWrite_4bp static void EPD_IT8951_HostAreaPackedPixelWrite_4bp(IT8951_Load_Img_Info*Load_Img_Info, IT8951_Area_Img_Info*Area_Img_Info, bool Packed_Write) { UWORD Source_Buffer_Width, Source_Buffer_Height; - UWORD Source_Buffer_Length; + UDOUBLE Source_Buffer_Length; UWORD* Source_Buffer = (UWORD*)Load_Img_Info->Source_Buffer_Addr; EPD_IT8951_SetTargetMemoryAddr(Load_Img_Info->Target_Memory_Addr);