From 0c3ce2eebcfdb742ceb3fe897502f0c2f45aa426 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 21 Jan 2012 21:16:00 +0000 Subject: power_state --> level as per OLPC #11485 --- (limited to 'pysamples/sensors.py') 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) -- cgit v0.9.1