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;