Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pysamples
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-01-21 21:16:00 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-01-21 21:16:00 (GMT)
commit0c3ce2eebcfdb742ceb3fe897502f0c2f45aa426 (patch)
tree5488dcbf605f586d5daea8830b4d4f206c600aea /pysamples
parent536e8bc53fc83fcc051ae79859bd6912e2260af0 (diff)
power_state --> level as per OLPC #11485
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)