Rockbox

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

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#10718 - Fix negative remaining runtime in some cases

Attached to Project: Rockbox
Opened by Andree Buschmann (Buschel) - Saturday, 24 October 2009, 21:12 GMT+2
Last edited by Andree Buschmann (Buschel) - Saturday, 02 January 2010, 21:25 GMT+2
Task Type Patches
Category Battery/Charging
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Release 3.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

The implementation of runtime estimation can result in negative runtime estimations in case of very few left battery capacity. This will happen for models that have defined voltage levels with battery_level_shutoff < percent_to_volt_discharge[0].
This patch does a simple straight forward estimation with limitation to runtimes >=0.
   powermgmt_v01.patch (0.9 KiB)
 firmware/powermgmt.c |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

This task depends upon

Closed by  Andree Buschmann (Buschel)
Saturday, 02 January 2010, 21:25 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  Commited with r24146.

Loading...