diff --git a/app/src/main/cpp/GPIOControl.cpp b/app/src/main/cpp/GPIOControl.cpp index 01c3a988..3a33a173 100644 --- a/app/src/main/cpp/GPIOControl.cpp +++ b/app/src/main/cpp/GPIOControl.cpp @@ -15,6 +15,9 @@ #include "GPIOControl.h" +#ifdef _DEBUG +#include +#endif #define IOT_PARAM_WRITE 0xAE #define IOT_PARAM_READ 0xAF @@ -54,7 +57,9 @@ int GpioControl::getInt(int cmd) IOT_PARAM param; param.cmd = cmd; ioctl(fd, IOT_PARAM_READ, ¶m); - // LOGE("get_int22 cmd=%d,value=%d,result=%d\r\n",param.cmd, param.value, param.result); +#ifdef _DEBUG + ALOGI("getInt cmd=%d,value=%d,result=%d\r\n",param.cmd, param.value, param.result); +#endif close(fd); return param.value; }