摘要 |
An electronic device with a battery capacity detecting function is provided. The electronic device detects an actual voltage of the battery every first preset time interval, calculates a weighted average voltage within a second preset time interval according to all the detected actual voltages within the second preset time interval, and determines a battery capacity according to the calculated weighted average voltage. A method for detecting a battery capacity of an electronic device is also provided.
|