change debug msg

This commit is contained in:
sharandac
2020-07-29 09:18:53 +02:00
parent c67db70f22
commit 47e2fb0376
12 changed files with 36 additions and 40 deletions

View File

@@ -25,13 +25,13 @@ void pmu_setup( TTGOClass *ttgo ) {
// enable coulumb counter
if ( ttgo->power->EnableCoulombcounter() )
Serial.printf( __FILE__ "enable coulumb counter failed!\r\n");
log_e("enable coulumb counter failed!");
if ( ttgo->power->setChargingTargetVoltage( AXP202_TARGET_VOL_4_2V ) )
Serial.printf( __FILE__ "target voltage set failed!\r\n");
log_e("target voltage set failed!");
if ( ttgo->power->setChargeControlCur( 300 ) )
Serial.printf( __FILE__ "charge current set failed!\r\n");
log_e("charge current set failed!");
if ( ttgo->power->setAdcSamplingRate( AXP_ADC_SAMPLING_RATE_200HZ ) )
Serial.printf( __FILE__ "adc sample set failed!\r\n");
log_e("adc sample set failed!");
// Turn off unused power
ttgo->power->setPowerOutPut( AXP202_EXTEN, AXP202_OFF );