Use uint8_t for byte data
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user