From 864a8dc0dd0f2491f7aaab5ae4f518d23c0b5dd6 Mon Sep 17 00:00:00 2001 From: "XI.CHEN" <2311041011@qq.com> Date: Tue, 25 Mar 2025 13:10:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=B3=E7=94=B5=E6=97=B6?= =?UTF-8?q?=E7=9B=B8=E6=9C=BA=E7=8A=B6=E6=80=81=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/GPIOControl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/cpp/GPIOControl.cpp b/app/src/main/cpp/GPIOControl.cpp index 35efa7d4..a4857242 100644 --- a/app/src/main/cpp/GPIOControl.cpp +++ b/app/src/main/cpp/GPIOControl.cpp @@ -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& 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 >& cmds) it->references--; if (it->references == 0) { + SetCamerastatus(it->cmd, false); setInt(it->cmd, 0); } }