增加关电时相机状态变更

PtzNew
XI.CHEN 3 months ago
parent a506598b42
commit 864a8dc0dd

@ -231,6 +231,7 @@ size_t GpioControl::TurnOffImmediately(int cmd)
if (it->references > 0)
{
it->references = 0;
SetCamerastatus(cmd, false);
setInt(it->cmd, 0);
}
break;
@ -273,6 +274,7 @@ size_t GpioControl::TurnOff(int cmd, uint32_t delayedCloseTime/* = 0*/)
it->references--;
if (it->references == 0)
{
SetCamerastatus(cmd, false);
setInt(it->cmd, 0);
}
}
@ -319,6 +321,7 @@ size_t GpioControl::TurnOff(const std::vector<int>& cmds, uint32_t delayedCloseT
it->references--;
if (it->references == 0)
{
SetCamerastatus(it->cmd, false);
setInt(it->cmd, 0);
}
}
@ -361,6 +364,7 @@ size_t GpioControl::TurnOff(const std::vector<std::pair<int, uint32_t> >& cmds)
it->references--;
if (it->references == 0)
{
SetCamerastatus(it->cmd, false);
setInt(it->cmd, 0);
}
}

Loading…
Cancel
Save