-rw-r--r-- | libopie/odevice.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 9f64fc0..4c49c4f 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -88,2 +88,3 @@ public: virtual int readLightSensor ( ); + virtual int lightSensorResolution ( ) const; @@ -371,2 +372,6 @@ int ODevice::readLightSensor ( ) +int ODevice::lightSensorResolution ( ) const +{ + return 0; +} @@ -684,4 +689,3 @@ bool iPAQ::hasLightSensor ( ) const } -#include <errno.h> -#include <string.h> + int iPAQ::readLightSensor ( ) @@ -709,2 +713,6 @@ int iPAQ::readLightSensor ( ) +int iPAQ::lightSensorResolution ( ) const +{ + return 256; +} |