+* Thu Jan 24 2013 Timo Toikkanen <timo.toikkanen@ixonos.com> accepted/tizen_2.0/20130111.182103@acd54f7
+- Fix for TZSP-4919
+- Updating changelog
+
* Fri Jan 10 2013 Telle-Tiia Pitkänen <telle-tiia.pitkanen@ixonos.com> submit/trunk/20121023.061641@daf1aa1
- Adding LGPLv2.1 license information
if (!fill_values(struct_type, count, unit, accuracy)) {
DbgPrint("Fill values returned false");
+ mValueMutex.unlock();
return -3;
}
void* BaseProcessor::started(void *ctx)
{
- //DbgPrint("%p",(void *) ctx);
+ DbgPrint("");
return ((BaseProcessor *) ctx)->started();
}
case EV_REL:
case EV_ABS:
DbgPrint("%s sensor got input code %d value %d\n",mName.c_str(), event.code, event.value);
- if (event.code >= 0 && event.code < sizeof(mValues)/sizeof(float))
+ if (event.code < sizeof(mValues)/sizeof(float))
mValues[event.code] = event.value;
break;
udev_enumerate *enumerator = NULL;
bool result = false;
struct udev_list_entry *devices = NULL, *dev_list_entry = NULL;
- const char *devicePath = NULL;
+ const char *devicePath = "";
DbgPrint("");
DbgPrint("Sysfs file entry opened");
int writeCount = write(fd,buffer,count);
if (writeCount == count) {
+ close(fd);
return true;
}
+ close(fd);
}
}
DbgPrint("There was error opening sysfs file %s",strerror(errno));
pollfd pollInfo;
pollInfo.fd = mFd;
pollInfo.events = POLLIN;
- poll(&pollInfo,1,2000);
-
- if (pollInfo.revents & POLLIN) {
+ if(poll(&pollInfo,1,2000)){
DbgPrint("HAVE POLLIN");
int value;
int readCount = read(mFd,&value,sizeof(int));
pollfd pollInfo;
pollInfo.fd = mFd;
pollInfo.events = POLLIN;
- poll(&pollInfo,1,-1);
- DbgPrint("Poll completed");
-
- if (pollInfo.revents & POLLIN) {
+ if (poll(&pollInfo,1,-1)){
+ DbgPrint("Poll completed");
int value;
int result = read(mFd,&value,sizeof(int));
if (result > 0) {