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 )