diff options
Diffstat (limited to 'pysamples/sensors.py')
-rw-r--r-- | pysamples/sensors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysamples/sensors.py b/pysamples/sensors.py index b05b6c7..d95b311 100644 --- a/pysamples/sensors.py +++ b/pysamples/sensors.py @@ -13,7 +13,7 @@ def myblock(tw, x): # ignores second argument import os # The light sensor is only available on the XO 1.75 - device = '/sys/devices/platform/olpc-ols.0/power_state' + device = '/sys/devices/platform/olpc-ols.0/level' if os.path.exists(device): fh = open(device) |