From 70f6f69fc3c731c29ce64618cd12917964c8004d Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 12 Dec 2024 11:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/SensorsProtocol.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/SensorsProtocol.cpp b/app/src/main/cpp/SensorsProtocol.cpp index c8b6cdf9..708d11ad 100644 --- a/app/src/main/cpp/SensorsProtocol.cpp +++ b/app/src/main/cpp/SensorsProtocol.cpp @@ -3413,7 +3413,7 @@ int Gm_SetCameraSerialPortParam(int fd, unsigned int baud) return ret; } -int Gm_OpenCameraSerial(SIO_PARAM_SERIAL_DEF *pPortParam, char *serfile, unsigned int baud) +int Gm_OpenCameraSerial(SIO_PARAM_SERIAL_DEF *pPortParam, const char *serfile, unsigned int baud) { int fd = -1; char szbuf[512]; @@ -3653,7 +3653,7 @@ int GM_CameraSerialTimer(SIO_PARAM_SERIAL_DEF *pPortParam) #if 1 // 启动使用串口拍照 -int GM_StartSerialCameraPhoto(int phototime, unsigned char channel, int cmdidx, unsigned char bImageSize, unsigned char presetno, char *serfile, unsigned int baud, int addr) +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];