关电时开电时间清零

PtzNew
XI.CHEN 3 months ago
parent 82ebd92ad2
commit eaf7bfb875

@ -233,6 +233,7 @@ size_t GpioControl::TurnOffImmediately(int cmd)
it->references = 0; it->references = 0;
SetCamerastatus(cmd, false); SetCamerastatus(cmd, false);
setInt(it->cmd, 0); setInt(it->cmd, 0);
it->openTime = 0;
} }
break; break;
} }
@ -276,6 +277,7 @@ size_t GpioControl::TurnOff(int cmd, uint32_t delayedCloseTime/* = 0*/)
{ {
SetCamerastatus(cmd, false); SetCamerastatus(cmd, false);
setInt(it->cmd, 0); setInt(it->cmd, 0);
it->openTime = 0;
} }
} }
break; break;
@ -323,6 +325,7 @@ size_t GpioControl::TurnOff(const std::vector<int>& cmds, uint32_t delayedCloseT
{ {
SetCamerastatus(it->cmd, false); SetCamerastatus(it->cmd, false);
setInt(it->cmd, 0); setInt(it->cmd, 0);
it->openTime = 0;
} }
} }
break; break;
@ -366,6 +369,7 @@ size_t GpioControl::TurnOff(const std::vector<std::pair<int, uint32_t> >& cmds)
{ {
SetCamerastatus(it->cmd, false); SetCamerastatus(it->cmd, false);
setInt(it->cmd, 0); setInt(it->cmd, 0);
it->openTime = 0;
} }
} }
break; break;

Loading…
Cancel
Save