From 293431c608d84cd3e95e5c9782b8f0b3d8266745 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 5 Mar 2025 15:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E4=BA=8E=E9=9D=9E3V3=E7=9A=84?= =?UTF-8?q?=E7=94=B5=E6=8E=A7=EF=BC=8C=E6=AF=8F=E6=AC=A1=E6=89=93=E5=BC=80?= =?UTF-8?q?=E9=83=BD=E5=AE=9E=E9=99=85=E6=89=A7=E8=A1=8C=E6=89=93=E5=BC=80?= =?UTF-8?q?=E5=8A=A8=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/GPIOControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/GPIOControl.cpp b/app/src/main/cpp/GPIOControl.cpp index 5d4c0321..db90c2e9 100644 --- a/app/src/main/cpp/GPIOControl.cpp +++ b/app/src/main/cpp/GPIOControl.cpp @@ -61,7 +61,7 @@ size_t GpioControl::turnOnImpl(const IOT_PARAM& param) SetCamerastatus(param.cmd, true); } - if (oldRef == 0) + if (oldRef == 0 || param.cmd != CMD_SET_3V3_PWR_EN) { fd = open(GPIO_NODE_MP, O_RDONLY); if( fd > 0 )