Author: fmueller
Date: Thu Jul 1 02:51:25 2010
New Revision: 8915
URL: http://svn.slimdevices.com/jive?rev=8915&view=rev
Log:
Bug: 16332
Description:
- Disable proximity LEDs after startup
(They are still on during startup because that is the default in the mcu code -
to prevent that a mcu code change would be needed.)
Modified:
7.6/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
Modified:
7.6/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
URL:
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua?rev=8915&r1=8914&r2=8915&view=diff
==============================================================================
---
7.6/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
(original)
+++
7.6/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
Thu Jul 1 02:51:25 2010
@@ -61,6 +61,10 @@
oo.class(_M, SqueezeboxApplet)
+-----------------------
+-- Proximity Init Stuff
+-----------------------
+local PROXIMITY_SYSPATH = "/sys/bus/i2c/devices/0-0047/"
-----------------------------
-- Ambient Light Init Stuff
@@ -123,6 +127,7 @@
-- warn if uuid or mac are invalid
verifyMacUUID(self)
+ self:initProximity()
self:initBrightness()
local brightnessTimer = Timer( BRIGHTNESS_REFRESH_RATE,
function()
@@ -173,6 +178,16 @@
listener(evt, msg)
end
end
+end
+
+-------------------------------
+-- Proximity Sensor Stuff Start
+-------------------------------
+function initProximity(self)
+ -- Disable proximity
+ local f = io.open(PROXIMITY_SYSPATH .. "proximity_control", "w")
+ f:write("0")
+ f:close()
end
-----------------------------
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins