#include <lib/base/init.h>
#include <lib/base/init_num.h>
-#include <lib/base/econfig.h>
#include <lib/base/eerror.h>
#define IOCTL_SET_CHANNEL 0
instance = this;
fd = open("/dev/rfmod0", O_RDWR);
+ if (fd < 0)
+ eDebug("couldnt open /dev/rfmod0!!!!");
}
eRFmod::~eRFmod()
void eRFmod::setFunction(int val) //0=Enable 1=Disable
{
- int myval = !val;
-
ioctl(fd, IOCTL_SET_STANDBY, &val);
}