mirror of
https://github.com/ddv2005/AirsoftTracker.git
synced 2026-02-17 15:41:45 +00:00
Fix axp192 clear interrupts
This commit is contained in:
@@ -654,7 +654,7 @@ void AXP20X_Class::clearIRQ()
|
|||||||
uint8_t val = 0xFF;
|
uint8_t val = 0xFF;
|
||||||
switch (_chip_id) {
|
switch (_chip_id) {
|
||||||
case AXP192_CHIP_ID:
|
case AXP192_CHIP_ID:
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
_writeByte(AXP192_INTSTS1 + i, 1, &val);
|
_writeByte(AXP192_INTSTS1 + i, 1, &val);
|
||||||
}
|
}
|
||||||
_writeByte(AXP192_INTSTS5, 1, &val);
|
_writeByte(AXP192_INTSTS5, 1, &val);
|
||||||
|
|||||||
Reference in New Issue
Block a user