From 251e120676a59b5430a71fe853b2cae1a27a7699 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 2 Dec 2024 14:30:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4OTG=E7=9A=84=E7=94=B5?= =?UTF-8?q?=E6=BA=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/GPIOControl.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/cpp/GPIOControl.h b/app/src/main/cpp/GPIOControl.h index b3f5226f..5bc283ad 100644 --- a/app/src/main/cpp/GPIOControl.h +++ b/app/src/main/cpp/GPIOControl.h @@ -173,18 +173,12 @@ public: static void setOtgState(bool on) { -#ifndef USING_N938 on ? TurnOn(CMD_SET_OTG_STATE) : TurnOff(CMD_SET_OTG_STATE); -#endif } static bool getOtgState() { -#ifndef USING_N938 return getInt(CMD_SET_OTG_STATE) != 0; -#else - return false; -#endif } static void setCam3V3Enable(bool enabled)