移除5V的控制(固件层自动控制)

PtzNew
Matthew 3 months ago
parent 496a6fbdce
commit d8defe3b63

@ -79,7 +79,7 @@
#define CMD_SET_485_ENABLE 512 #define CMD_SET_485_ENABLE 512
#define CMD_SET_3V3_PWR_EN 516 #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_ENABLE 504
#define CMD_SET_SENSOR_PWR_ENABLE 505 #define CMD_SET_SENSOR_PWR_ENABLE 505
#define CMD_SET_SENSOR2_ENABLE 506 #define CMD_SET_SENSOR2_ENABLE 506
@ -129,7 +129,7 @@
#define CMD_SET_485_EN3 304 #define CMD_SET_485_EN3 304
#define CMD_SET_485_EN2 303 #define CMD_SET_485_EN2 303
#define CMD_SET_SPI_POWER 129 #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_SDCARD_DETECT_EN 364
#define CMD_SET_PIC1_POWER 494 #define CMD_SET_PIC1_POWER 494
#define CMD_SET_OTHER_POWER 493 #define CMD_SET_OTHER_POWER 493

@ -4922,7 +4922,7 @@ bool CPhoneDevice::OpenSensors(int sensortype)
#ifndef USING_N938 #ifndef USING_N938
#ifndef USING_PTZ #ifndef USING_PTZ
#else #else
GpioControl::TurnOn(CMD_SET_5V_PWR_ENABLE); // GpioControl::TurnOn(CMD_SET_5V_PWR_ENABLE);
GpioControl::TurnOn(CMD_SET_PTZ_PWR_ENABLE); GpioControl::TurnOn(CMD_SET_PTZ_PWR_ENABLE);
#endif #endif
#else #else
@ -4995,7 +4995,7 @@ bool CPhoneDevice::CloseSensors(int sensortype, uint32_t delayedCloseTime)
// GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE); // GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE);
#ifndef USING_PTZ #ifndef USING_PTZ
#else #else
GpioControl::TurnOffImmediately(CMD_SET_5V_PWR_ENABLE); // GpioControl::TurnOffImmediately(CMD_SET_5V_PWR_ENABLE);
GpioControl::TurnOffImmediately(CMD_SET_PTZ_PWR_ENABLE); GpioControl::TurnOffImmediately(CMD_SET_PTZ_PWR_ENABLE);
#endif #endif
#endif #endif
@ -5011,7 +5011,7 @@ bool CPhoneDevice::CloseSensors(int sensortype, uint32_t delayedCloseTime)
// GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE); // GpioControl::TurnOff(CMD_SET_3V3_PWR_ENABLE);
#ifndef USING_PTZ #ifndef USING_PTZ
#else #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); GpioControl::TurnOff(CMD_SET_PTZ_PWR_ENABLE, delayedCloseTime);
#endif #endif
#endif #endif

Loading…
Cancel
Save