Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#9881 - Enable toggling the lamp on and off in the lamp plugin

Attached to Project: Rockbox
Opened by Alexander Levin (fml2) - Saturday, 07 February 2009, 23:19 GMT+2
Task Type Patches
Category Plugins
Status Unconfirmed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Version 3.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Private No

Details

This patch is a continuation of FS#9879 and includes it (but adds something more). It adds the possibility to switch the lamp on and off without leaving the plugin.

Key mappings were taken from FS#8934.
   lamp_toggle.patch (9 KiB)
 apps/plugins/lamp.c |  193 +++++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 161 insertions(+), 32 deletions(-)

This task depends upon

Comment by Alexander Levin (fml2) - Sunday, 08 February 2009, 13:17 GMT+2
Better patch: uses the new helper functions for turning the backlight OFF. These new functions are also available as a separate patch, see  FS#9883 
   lamp_toggle_2.patch (12.8 KiB)
 apps/plugins/lib/helper.c |   73 +++++++++++++----
 apps/plugins/lib/helper.h |    3 
 apps/plugins/lamp.c       |  193 ++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 221 insertions(+), 48 deletions(-)

Loading...