MCPcopy Create free account
hub / github.com/BruceDevices/firmware / isCharging

Function isCharging

boards/m5stack-cplus1_1/interface.cpp:103–105  ·  view source on GitHub ↗

** Function name: isCharging() ** Description: Determines if the device is charging ***************************************************************************************/

Source from the content-addressed store, hash-verified

101** Description: Determines if the device is charging
102***************************************************************************************/
103bool isCharging() {
104 return axp192.GetBatCurrent() > 20; // need testing
105}
106#endif

Callers

nothing calls this directly

Calls 1

GetBatCurrentMethod · 0.80

Tested by

no test coverage detected