From fa16f4a54d61e1f4c899a9fe8f464d98f2e01185 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Wed, 3 Jul 2024 11:15:30 +0100 Subject: [PATCH] Implement SX127X clearIRQStatus function --- Radio.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Radio.cpp b/Radio.cpp index f7bd4fc..b7ebaf0 100644 --- a/Radio.cpp +++ b/Radio.cpp @@ -1550,7 +1550,10 @@ void sx127x::updateBitrate() { } void sx127x::clearIRQStatus() { - // todo, implement + int irqFlags = readRegister(REG_IRQ_FLAGS_7X); + + // Clear IRQs + writeRegister(REG_IRQ_FLAGS_7X, irqFlags); } // SX128x registers