Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pysamples
diff options
context:
space:
mode:
Diffstat (limited to 'pysamples')
-rw-r--r--pysamples/sensors.py2
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)