Use uint8_t for byte data

This commit is contained in:
Shish
2022-01-05 14:13:57 +00:00
committed by Shish
parent 50f7708f57
commit 1a46c6e86d

View File

@@ -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);