Update axp192.cpp
This commit is contained in:
@@ -204,6 +204,7 @@ void AXP192Component::ReadBuff( uint8_t Addr , uint8_t Size , uint8_t *Buff )
|
|||||||
|
|
||||||
void AXP192Component::UpdateBrightness()
|
void AXP192Component::UpdateBrightness()
|
||||||
{
|
{
|
||||||
|
ESP_LOGD(TAG, GetStartupReason());
|
||||||
ESP_LOGD(TAG, "Brightness=%f (Curr: %f)", brightness_, curr_brightness_);
|
ESP_LOGD(TAG, "Brightness=%f (Curr: %f)", brightness_, curr_brightness_);
|
||||||
if (brightness_ == curr_brightness_)
|
if (brightness_ == curr_brightness_)
|
||||||
{
|
{
|
||||||
@@ -234,7 +235,7 @@ void AXP192Component::UpdateBrightness()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool AXP192Component::GetBatState()
|
bool AXP192Component::GetBatState()
|
||||||
{
|
{
|
||||||
if( Read8bit(0x01) | 0x20 )
|
if( Read8bit(0x01) | 0x20 )
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user