增加日志

streaming
Matthew 4 months ago
parent 3234185c8b
commit 5a4840dcbf

@ -14,6 +14,7 @@
#include <climits>
#include "GPIOControl.h"
#include <LogThread.h>
#ifdef _DEBUG
#include <AndroidHelper.h>
@ -80,8 +81,8 @@ void GpioControl::setInt(int cmd, int value)
if (fd > 0)
{
int res = ioctl(fd, IOT_PARAM_WRITE, &param);
#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);
}

Loading…
Cancel
Save