diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-12-31 16:47:44 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-01-02 20:11:03 +0000 |
commit | af872b54ec3f8f7ad6ec111e4fe80dd2c7ac9946 (patch) | |
tree | 83b03175ca50757359d98d2ad965ca8dfdfc773f /firmware/target/mips | |
parent | a7703e4926075ee41269ca96d1806444107e65f2 (diff) | |
download | rockbox-af872b54ec3f8f7ad6ec111e4fe80dd2c7ac9946.tar.gz rockbox-af872b54ec3f8f7ad6ec111e4fe80dd2c7ac9946.zip |
powermgmt: Bugfixes to time estimation code
Guard against division by zero and prevent the time_now
value from going negative if the counter drops below zero.
Change-Id: Ia8cadfe76086d6d0200964c1f27bab0be708b135
Diffstat (limited to 'firmware/target/mips')
0 files changed, 0 insertions, 0 deletions