From 808271c7f1b4617b1c36a8ac77cb874da6de8bdb Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 20 Mar 2025 18:12:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/GPIOControl.h | 2 +- app/src/main/cpp/PhoneDevice.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/GPIOControl.h b/app/src/main/cpp/GPIOControl.h index b5d37b2d..eb207b47 100644 --- a/app/src/main/cpp/GPIOControl.h +++ b/app/src/main/cpp/GPIOControl.h @@ -48,7 +48,7 @@ #define CMD_SET_12V_EN_STATE 133 #if 1 #define CMD_SET_SPI_POWER 129 -#define CMD_SET_3V3_PWR_EN 132 +#define CMD_SET_3V3_PWR_EN 2 #endif #define CMD_GET_CAMERA_STATUS 310 diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index dcce7e27..e30c78e9 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1958,6 +1958,7 @@ bool CPhoneDevice::StartPushStreaming(IDevice::PHOTO_INFO& photoInfo, const std: }); #endif + XYLOG(XYLOG_SEVERITY_INFO, "Start Streaming CH=%u PR=%X PHOTOID=%u", (uint32_t)photoInfo.channel, (unsigned int)photoInfo.preset, photoInfo.photoId); // Start forwarding res = forwarder->start(); #if 0 @@ -1977,6 +1978,8 @@ bool CPhoneDevice::StartPushStreaming(IDevice::PHOTO_INFO& photoInfo, const std: } else if (photoInfo.mediaType == XY_MEDIA_TYPE_STREAM_OFF) { + XYLOG(XYLOG_SEVERITY_INFO, "Stop Streaming CH=%u PR=%X PHOTOID=%u", (uint32_t)photoInfo.channel, (unsigned int)photoInfo.preset, photoInfo.photoId); + auto it = m_streamings.find(photoInfo.channel); if (it != m_streamings.end()) {