输出日志

serial
BlueMatthew 1 year ago
parent 5aa79e7f54
commit 21e02a9947

@ -15,6 +15,9 @@
#include "GPIOControl.h"
#ifdef _DEBUG
#include <AndroidHelper.h>
#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, &param);
// 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;
}

Loading…
Cancel
Save