diff --git a/components/axp2101/axp2101.cpp b/components/axp2101/axp2101.cpp index 59040d6..30c3653 100644 --- a/components/axp2101/axp2101.cpp +++ b/components/axp2101/axp2101.cpp @@ -312,7 +312,7 @@ void AXP2101Component::dump_config() { float AXP2101Component::get_setup_priority() const { return setup_priority::DATA; } void AXP2101Component::update() { - +#if 0 if (this->batterylevel_sensor_ != nullptr) { float vbat = PMU.getBattVoltage(); ESP_LOGD(TAG, "Got Battery Voltage=%f", vbat); @@ -341,6 +341,7 @@ void AXP2101Component::update() { ESP_LOGD(TAG, "Got Battery Charging=%s", vcharging ? "true" : "false"); this->batterycharging_bsensor_->publish_state(vcharging); } +#endif #if 0 UpdateBrightness();