mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 19:29:57 +00:00
19 lines
572 B
C
19 lines
572 B
C
|
#if 0
|
||
|
// Turn off for now
|
||
|
uint32_t axpDebugRead()
|
||
|
{
|
||
|
axp.debugCharging();
|
||
|
DEBUG_MSG("vbus current %f\n", axp.getVbusCurrent());
|
||
|
DEBUG_MSG("charge current %f\n", axp.getBattChargeCurrent());
|
||
|
DEBUG_MSG("bat voltage %f\n", axp.getBattVoltage());
|
||
|
DEBUG_MSG("batt pct %d\n", axp.getBattPercentage());
|
||
|
DEBUG_MSG("is battery connected %d\n", axp.isBatteryConnect());
|
||
|
DEBUG_MSG("is USB connected %d\n", axp.isVBUSPlug());
|
||
|
DEBUG_MSG("is charging %d\n", axp.isChargeing());
|
||
|
|
||
|
return 30 * 1000;
|
||
|
}
|
||
|
|
||
|
Periodic axpDebugOutput(axpDebugRead);
|
||
|
axpDebugOutput.setup();
|
||
|
#endif
|