From 5a4840dcbf0c9c9e3fc1a2296e6e85d8f020af11 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 25 Feb 2025 15:16:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/GPIOControl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/GPIOControl.cpp b/app/src/main/cpp/GPIOControl.cpp index 1a85feb6..b4fffbab 100644 --- a/app/src/main/cpp/GPIOControl.cpp +++ b/app/src/main/cpp/GPIOControl.cpp @@ -14,6 +14,7 @@ #include #include "GPIOControl.h" +#include #ifdef _DEBUG #include @@ -80,8 +81,8 @@ void GpioControl::setInt(int cmd, int value) if (fd > 0) { int res = ioctl(fd, IOT_PARAM_WRITE, ¶m); -#ifdef _DEBUG - ALOGI("setInt cmd=%d,value=%d,result=%d\r\n",param.cmd, param.value, param.result); +#ifdef OUTPUT_DBG_INFO + XYLOG(XYLOG_SEVERITY_DEBUG, "setInt cmd=%d,value=%d,result=%d\r\n",param.cmd, param.value, param.result); #endif close(fd); }