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