优化日志

PtzNew
Matthew 3 months ago
parent 21fd57061c
commit 808271c7f1

@ -48,7 +48,7 @@
#define CMD_SET_12V_EN_STATE 133 #define CMD_SET_12V_EN_STATE 133
#if 1 #if 1
#define CMD_SET_SPI_POWER 129 #define CMD_SET_SPI_POWER 129
#define CMD_SET_3V3_PWR_EN 132 #define CMD_SET_3V3_PWR_EN 2
#endif #endif
#define CMD_GET_CAMERA_STATUS 310 #define CMD_GET_CAMERA_STATUS 310

@ -1958,6 +1958,7 @@ bool CPhoneDevice::StartPushStreaming(IDevice::PHOTO_INFO& photoInfo, const std:
}); });
#endif #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 // Start forwarding
res = forwarder->start(); res = forwarder->start();
#if 0 #if 0
@ -1977,6 +1978,8 @@ bool CPhoneDevice::StartPushStreaming(IDevice::PHOTO_INFO& photoInfo, const std:
} }
else if (photoInfo.mediaType == XY_MEDIA_TYPE_STREAM_OFF) 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); auto it = m_streamings.find(photoInfo.channel);
if (it != m_streamings.end()) if (it != m_streamings.end())
{ {

Loading…
Cancel
Save