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