x
This commit is contained in:
@@ -312,7 +312,7 @@ void AXP2101Component::dump_config() {
|
|||||||
float AXP2101Component::get_setup_priority() const { return setup_priority::DATA; }
|
float AXP2101Component::get_setup_priority() const { return setup_priority::DATA; }
|
||||||
|
|
||||||
void AXP2101Component::update() {
|
void AXP2101Component::update() {
|
||||||
|
#if 0
|
||||||
if (this->batterylevel_sensor_ != nullptr) {
|
if (this->batterylevel_sensor_ != nullptr) {
|
||||||
float vbat = PMU.getBattVoltage();
|
float vbat = PMU.getBattVoltage();
|
||||||
ESP_LOGD(TAG, "Got Battery Voltage=%f", vbat);
|
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");
|
ESP_LOGD(TAG, "Got Battery Charging=%s", vcharging ? "true" : "false");
|
||||||
this->batterycharging_bsensor_->publish_state(vcharging);
|
this->batterycharging_bsensor_->publish_state(vcharging);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
UpdateBrightness();
|
UpdateBrightness();
|
||||||
|
|||||||
Reference in New Issue
Block a user