diff --git a/components/axp192/axp192.cpp b/components/axp192/axp192.cpp index a91df16..3e712ea 100644 --- a/components/axp192/axp192.cpp +++ b/components/axp192/axp192.cpp @@ -54,7 +54,7 @@ void AXP192Component::begin(bool disableLDO2, bool disableLDO3, bool disableRTC, Write1Byte(0x33, 0xc0); // Depending on configuration enable LDO2, LDO3, DCDC1, DCDC3. - byte buf = (Read8bit(0x12) & 0xef) | 0x4D; + uint8_t buf = (Read8bit(0x12) & 0xef) | 0x4D; if(disableLDO3) buf &= ~(1<<3); if(disableLDO2) buf &= ~(1<<2); if(disableDCDC3) buf &= ~(1<<1);