Author: fmueller
Date: Thu Feb 18 07:09:33 2010
New Revision: 8522
URL: http://svn.slimdevices.com/jive?rev=8522&view=rev
Log:
Bug: 15637
Description: Do not increase backlight brightness for non Squeezebox IR
remotes.
Modified:
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
Modified:
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
URL:
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua?rev=8522&r1=8521&r2=8522&view=diff
==============================================================================
---
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
(original)
+++
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeboxFab4/SqueezeboxFab4Applet.lua
Thu Feb 18 07:09:33 2010
@@ -211,6 +211,12 @@
-- Create a global listener to set
Framework:addListener(ACTION | EVENT_SCROLL | EVENT_MOUSE_ALL |
EVENT_MOTION | EVENT_IR_ALL,
function(event)
+ -- Prevent non Squeezebox IR remotes from increasing
brightness
+ if (event:getType() & EVENT_IR_ALL) > 0 then
+ if (not Framework:isValidIRCode(event)) then
+ return EVENT_UNUSED
+ end
+ end
-- Set to >0 means we're ACTIVE
brightOverride = BRIGHTNESS_OVERRIDE
-- ACTIVE: Increase brightness
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins