FS#10718 - Fix negative remaining runtime in some cases

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


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.
This task depends upon

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