|
|
@ -14,6 +14,7 @@
|
|
|
|
#include <climits>
|
|
|
|
#include <climits>
|
|
|
|
|
|
|
|
|
|
|
|
#include "GPIOControl.h"
|
|
|
|
#include "GPIOControl.h"
|
|
|
|
|
|
|
|
#include <LogThread.h>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#include <AndroidHelper.h>
|
|
|
|
#include <AndroidHelper.h>
|
|
|
@ -80,8 +81,8 @@ void GpioControl::setInt(int cmd, int value)
|
|
|
|
if (fd > 0)
|
|
|
|
if (fd > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int res = ioctl(fd, IOT_PARAM_WRITE, ¶m);
|
|
|
|
int res = ioctl(fd, IOT_PARAM_WRITE, ¶m);
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#ifdef OUTPUT_DBG_INFO
|
|
|
|
ALOGI("setInt cmd=%d,value=%d,result=%d\r\n",param.cmd, param.value, param.result);
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "setInt cmd=%d,value=%d,result=%d\r\n",param.cmd, param.value, param.result);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
close(fd);
|
|
|
|
close(fd);
|
|
|
|
}
|
|
|
|
}
|
|
|
|