From 10600fafbf564bef2f9d48aa08953ef803c4ff71 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 14 Jan 2026 20:10:28 -0500 Subject: [PATCH] Fix axp192 clear interrupts --- lib/axp192/axp20x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/axp192/axp20x.cpp b/lib/axp192/axp20x.cpp index baf9253..94889b9 100644 --- a/lib/axp192/axp20x.cpp +++ b/lib/axp192/axp20x.cpp @@ -654,7 +654,7 @@ void AXP20X_Class::clearIRQ() uint8_t val = 0xFF; switch (_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_INTSTS5, 1, &val);