|
|
|
@ -3757,8 +3757,8 @@ bool CPhoneDevice::OpenSensors(int sensortype)
|
|
|
|
|
{
|
|
|
|
|
if(sensortype == MAIN_POWER_OPEN) {
|
|
|
|
|
GpioControl::set12VEnable(true);
|
|
|
|
|
GpioControl::setCam3V3Enable(true);
|
|
|
|
|
GpioControl::setRS485Enable(true);
|
|
|
|
|
GpioControl::setCam3V3Enable(true);
|
|
|
|
|
GpioControl::TurnOn(CMD_SET_SPI_POWER);
|
|
|
|
|
// GpioControl::TurnOn(CMD_SET_485_EN_STATE); // 打开RS485电源
|
|
|
|
|
#ifndef USING_N938
|
|
|
|
@ -3820,10 +3820,10 @@ bool CPhoneDevice::CloseSensors(int sensortype)
|
|
|
|
|
{
|
|
|
|
|
if(sensortype == MAIN_POWER_OPEN)
|
|
|
|
|
{
|
|
|
|
|
GpioControl::TurnOff(CMD_SET_SPI_POWER);
|
|
|
|
|
GpioControl::set12VEnable(false);
|
|
|
|
|
GpioControl::setCam3V3Enable(false);
|
|
|
|
|
GpioControl::setRS485Enable(false);
|
|
|
|
|
GpioControl::setCam3V3Enable(false);
|
|
|
|
|
GpioControl::TurnOff(CMD_SET_SPI_POWER);
|
|
|
|
|
// GpioControl::TurnOff(CMD_SET_485_EN_STATE);
|
|
|
|
|
#ifndef USING_N938
|
|
|
|
|
#ifndef USING_PLZ
|
|
|
|
|