From 5894e4993a9582bc309c008e2fcee68d3827892f Mon Sep 17 00:00:00 2001 From: Wendal Chen Date: Thu, 21 Nov 2024 12:01:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20EPD=5F3in7=5FU=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=AE=BF=E9=97=AE=E6=9C=89=E8=B6=8A=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/epaper/EPD_3in7_U.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/epaper/EPD_3in7_U.c b/components/epaper/EPD_3in7_U.c index 94a23f77d..4302222a6 100644 --- a/components/epaper/EPD_3in7_U.c +++ b/components/epaper/EPD_3in7_U.c @@ -260,7 +260,7 @@ void EPD_3in7_U_lut_GC(void) { UBYTE count; EPD_3in7_U_SendCommand(0x20); // vcom - for(count = 0; count < 56 ; count++) + for(count = 0; count < sizeof(EPD_3in7_U_lut_R20_GC) ; count++) { EPD_3in7_U_SendData(EPD_3in7_U_lut_R20_GC[count]); } @@ -280,7 +280,7 @@ void EPD_3in7_U_lut_GC(void) if(EPD_3in7_U_Flag == 0) { EPD_3in7_U_SendCommand(0x22); // bw r - for(count = 0; count < 56 ; count++) + for(count = 0; count < sizeof(EPD_3in7_U_lut_R22_GC) ; count++) { EPD_3in7_U_SendData(EPD_3in7_U_lut_R22_GC[count]); } @@ -297,7 +297,7 @@ void EPD_3in7_U_lut_GC(void) else { EPD_3in7_U_SendCommand(0x22); // bw r - for(count = 0; count < 56 ; count++) + for(count = 0; count < sizeof(EPD_3in7_U_lut_R23_GC) ; count++) { EPD_3in7_U_SendData(EPD_3in7_U_lut_R23_GC[count]); } @@ -317,7 +317,7 @@ void EPD_3in7_U_lut_DU(void) { UBYTE count; EPD_3in7_U_SendCommand(0x20); // vcom - for(count = 0; count < 56 ; count++) + for(count = 0; count < sizeof(EPD_3in7_U_lut_R20_DU) ; count++) { EPD_3in7_U_SendData(EPD_3in7_U_lut_R20_DU[count]); } @@ -337,7 +337,7 @@ void EPD_3in7_U_lut_DU(void) if(EPD_3in7_U_Flag == 0) { EPD_3in7_U_SendCommand(0x22); // bw r - for(count = 0; count < 56 ; count++) + for(count = 0; count < sizeof(EPD_3in7_U_lut_R22_DU) ; count++) { EPD_3in7_U_SendData(EPD_3in7_U_lut_R22_DU[count]); } @@ -354,7 +354,7 @@ void EPD_3in7_U_lut_DU(void) else { EPD_3in7_U_SendCommand(0x22); // bw r - for(count = 0; count < 56 ; count++) + for(count = 0; count < sizeof(EPD_3in7_U_lut_R23_DU) ; count++) { EPD_3in7_U_SendData(EPD_3in7_U_lut_R23_DU[count]); }