|
|
@ -39,8 +39,6 @@ size_t GpioControl::turnOnImpl(const IOT_PARAM& param)
|
|
|
|
int fd = -1;
|
|
|
|
int fd = -1;
|
|
|
|
time_t now = time(NULL);
|
|
|
|
time_t now = time(NULL);
|
|
|
|
|
|
|
|
|
|
|
|
m_locker.lock();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// check res???
|
|
|
|
// check res???
|
|
|
|
for (it = m_items.begin(); it != m_items.end(); ++it)
|
|
|
|
for (it = m_items.begin(); it != m_items.end(); ++it)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -63,7 +61,6 @@ size_t GpioControl::turnOnImpl(const IOT_PARAM& param)
|
|
|
|
m_items.push_back(item);
|
|
|
|
m_items.push_back(item);
|
|
|
|
SetCamerastatus(param.cmd, true);
|
|
|
|
SetCamerastatus(param.cmd, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_locker.unlock();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (oldRef == 0)
|
|
|
|
if (oldRef == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|