From 92ce03d2e8f12ce1b3d018cbfcc76b7eaaacd893 Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 15 May 2025 09:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/SensorsProtocol.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/cpp/SensorsProtocol.cpp b/app/src/main/cpp/SensorsProtocol.cpp index 178c48b4..0d5af91c 100644 --- a/app/src/main/cpp/SensorsProtocol.cpp +++ b/app/src/main/cpp/SensorsProtocol.cpp @@ -3283,7 +3283,7 @@ int GM_CameraSerialTimer(SIO_PARAM_SERIAL_DEF *pPortParam) int GM_StartSerialCameraPhoto(int phototime, unsigned char channel, int cmdidx, unsigned char bImageSize, unsigned char presetno, const char *serfile, unsigned int baud, int addr) { int flag = 0; - char szbuf[128], logbuf[128]; + char logbuf[128]; SIO_PARAM_SERIAL_DEF *cameraport; cameraport = (SIO_PARAM_SERIAL_DEF*)malloc(sizeof(SIO_PARAM_SERIAL_DEF)); @@ -3303,7 +3303,6 @@ int GM_StartSerialCameraPhoto(int phototime, unsigned char channel, int cmdidx, flag = Gm_OpenCameraSerial(cameraport, serfile, baud); #if 1 - memset(szbuf, 0, sizeof(szbuf)); srdt.iLastGetPhotoNo = -1; if (TAKE_PHOTO == cmdidx) cameraport->image.state = SER_STARTSAMPLE;