From d8defe3b63b44582091154d61745f4e65f0334f2 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 26 Mar 2025 13:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A45V=E7=9A=84=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=EF=BC=88=E5=9B=BA=E4=BB=B6=E5=B1=82=E8=87=AA=E5=8A=A8=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/GPIOControl.h | 4 ++-- app/src/main/cpp/PhoneDevice.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/cpp/GPIOControl.h b/app/src/main/cpp/GPIOControl.h index 53ba319f..615dfe2c 100644 --- a/app/src/main/cpp/GPIOControl.h +++ b/app/src/main/cpp/GPIOControl.h @@ -79,7 +79,7 @@ #define CMD_SET_485_ENABLE 512 #define CMD_SET_3V3_PWR_EN 516 -#define CMD_SET_5V_PWR_ENABLE 517 +// #define CMD_SET_5V_PWR_ENABLE 517 #define CMD_SET_SENSOR_ENABLE 504 #define CMD_SET_SENSOR_PWR_ENABLE 505 #define CMD_SET_SENSOR2_ENABLE 506 @@ -129,7 +129,7 @@ #define CMD_SET_485_EN3 304 #define CMD_SET_485_EN2 303 #define CMD_SET_SPI_POWER 129 -#define CMD_SET_5V_EN 363 +// #define CMD_SET_5V_EN 363 #define CMD_SDCARD_DETECT_EN 364 #define CMD_SET_PIC1_POWER 494 #define CMD_SET_OTHER_POWER 493 diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 51827e47..0d9cf9ce 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -4922,7 +4922,7 @@ bool CPhoneDevice::OpenSensors(int sensortype) #ifndef USING_N938 #ifndef USING_PTZ #else - GpioControl::TurnOn(CMD_SET_5V_PWR_ENABLE); + // GpioControl::TurnOn(CMD_SET_5V_PWR_ENABLE); GpioControl::TurnOn(CMD_SET_PTZ_PWR_ENABLE); #endif #else @@ -4995,7 +4995,7 @@ bool CPhoneDevice::CloseSensors(int sensortype, uint32_t delayedCloseTime) // GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE); #ifndef USING_PTZ #else - GpioControl::TurnOffImmediately(CMD_SET_5V_PWR_ENABLE); + // GpioControl::TurnOffImmediately(CMD_SET_5V_PWR_ENABLE); GpioControl::TurnOffImmediately(CMD_SET_PTZ_PWR_ENABLE); #endif #endif @@ -5011,7 +5011,7 @@ bool CPhoneDevice::CloseSensors(int sensortype, uint32_t delayedCloseTime) // GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE); #ifndef USING_PTZ #else - GpioControl::TurnOff(CMD_SET_5V_PWR_ENABLE, delayedCloseTime); + // GpioControl::TurnOff(CMD_SET_5V_PWR_ENABLE, delayedCloseTime); GpioControl::TurnOff(CMD_SET_PTZ_PWR_ENABLE, delayedCloseTime); #endif #endif