> Made my wrapper to its capi, and it looks MUCH better. > Threads seem responsive again.
Hey, glad to hear that ;) > Are there exceptions thrown when a sensor read goes wrong? according to libcapi.py's get and put: def get (self, path) : buf_p = ctypes.POINTER (ctypes.c_char) () buf_len = ctypes.c_long () res = self.libcapi.OW_get \ (path, ctypes.byref (buf_p), ctypes.byref (buf_len)) if res >= 0 : res = "".join ([i for i in buf_p [:buf_len.value]]) self.libc.free (buf_p) else : res = None return res # end def get def put (self, path, what) : res = self.libcapi.OW_put (path, what, len (what)) if res >= 0 : return True else : return False # end def put i guess not ... ;) but feel free to improve it based on the returncodes of OW_get and OW_put ... never digged that deep into libcapi anyway ;) ... and as always: patches are welcome ;) all the best !!! regards, marcus. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers