增加打开电源延时

N938
XI.CHEN 6 months ago
parent a7b7623c93
commit 78ceadc24e

@ -60,6 +60,7 @@ size_t GpioControl::turnOnImpl(const IOT_PARAM& param)
#ifdef _DEBUG
ALOGI("PWR TurnOn cmd=%d,result=%d ref=%u\r\n",param.cmd, param.result, (uint32_t)references);
#endif
std::this_thread::sleep_for(std::chrono::milliseconds(100));
return references;
}

@ -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

Loading…
Cancel
Save