对于非3V3的电控,每次打开都实际执行打开动作

ptz
Matthew 3 months ago
parent 65e56000cb
commit 293431c608

@ -61,7 +61,7 @@ size_t GpioControl::turnOnImpl(const IOT_PARAM& param)
SetCamerastatus(param.cmd, true); SetCamerastatus(param.cmd, true);
} }
if (oldRef == 0) if (oldRef == 0 || param.cmd != CMD_SET_3V3_PWR_EN)
{ {
fd = open(GPIO_NODE_MP, O_RDONLY); fd = open(GPIO_NODE_MP, O_RDONLY);
if( fd > 0 ) if( fd > 0 )

Loading…
Cancel
Save