** Function name: getBattery() ** location: display.cpp ** Description: Delivers the battery value from 1-100+ ***************************************************************************************/
| 111 | ** Description: Delivers the battery value from 1-100+ |
| 112 | ***************************************************************************************/ |
| 113 | int getBattery() { |
| 114 | int percent = 0; |
| 115 | percent = bq.getChargePcnt(); |
| 116 | return (percent < 0) ? 0 : (percent >= 100) ? 100 : percent; |
| 117 | } |
| 118 | |
| 119 | bool isCharging() { |
| 120 | return bq.getIsCharging(); // Return the charging status from BQ27220 |
nothing calls this directly
no test coverage detected