From 253aaccfa71aa909b97a607545b6fe39078cd290 Mon Sep 17 00:00:00 2001 From: paulchilton Date: Sat, 31 Dec 2022 20:34:23 +0000 Subject: [PATCH] Update axp192.cpp --- components/axp192/axp192.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/axp192/axp192.cpp b/components/axp192/axp192.cpp index cdb8099..981bcca 100644 --- a/components/axp192/axp192.cpp +++ b/components/axp192/axp192.cpp @@ -204,6 +204,7 @@ void AXP192Component::ReadBuff( uint8_t Addr , uint8_t Size , uint8_t *Buff ) void AXP192Component::UpdateBrightness() { + ESP_LOGD(TAG, GetStartupReason()); ESP_LOGD(TAG, "Brightness=%f (Curr: %f)", brightness_, curr_brightness_); if (brightness_ == curr_brightness_) { @@ -234,7 +235,7 @@ void AXP192Component::UpdateBrightness() } bool AXP192Component::GetBatState() -{ +{ if( Read8bit(0x01) | 0x20 ) return true; else