forked from len0rd/rockbox
FS#13538 export and import battery level tables
when battery_bench is run exports a file in the rockbox directory called 'battery_levels.default' if the user wants their own levels they can rename the file battery_levels.cfg and it will be loaded at boot some minimal error checking is performed prior to using the values added manual entry Change-Id: Ia0126faced0c7229fcf8385a1bcb584b5a9dc378
This commit is contained in:
parent
3539dd5a70
commit
10f8312db4
79 changed files with 611 additions and 298 deletions
|
|
@ -201,11 +201,11 @@ static void battery_trap(void)
|
|||
* differ as much as more than 200 mV when charge current is at
|
||||
* maximum (~340 mA).
|
||||
* - RB uses some sort of average/compensation for battery voltage
|
||||
* measurements, battery icon blinks at battery_level_dangerous,
|
||||
* measurements, battery icon blinks at battery_level_disksafe,
|
||||
* when the HDD is used heavily (large database) the level drops
|
||||
* to battery_level_shutoff quickly.
|
||||
*/
|
||||
if (vbat >= battery_level_dangerous[0] + th)
|
||||
if (vbat >= battery_level_disksafe[0] + th)
|
||||
break;
|
||||
th = 200;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue