>From: Zhao, Forrest [mailto:[email protected]]
>Sent: Wednesday, February 23, 2011 10:07 PM
>Subject: How to make SelectMode/IntervalMode configurable for gyroscope
>sensor adaptor?
>
>Hi Timo,
>
>We have a gyroscope sensor working in interval mode. So I wrote a gyroscope
>adaptor working under IntervalMode, which is based on the existent
>gyroscope adaptor working under SelectMode.
>
>So I'm wondering if we can make SelectMode/IntervalMode a configuration
>parameter for gyroscope sensor adaptor? So that we don't need to duplicate
>most of the code.

Hi Forrest,

This is already possible in sensord-0.7.0. The configuration format has changed 
a bit, and the default init() for adaptors looks for key "mode" in 
configuration. A bunch of other things are handled more easily by configuration 
as well. You just need to make sure that interval functions behave correctly 
based on which mode is used (call sysfsAdaptor functions for PollMode, 
implement for SelectMode).

Markus already requested us to tag 0.7.0. I hope we can do that soon, so we get 
the changes to MeeGo.

// Timo
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to