From 771463ae20c47272ec5baf79d06cd0b6254406cc Mon Sep 17 00:00:00 2001 From: Apexo Date: Thu, 2 Apr 2026 21:02:16 +0200 Subject: SLPCTRL: clear sleep state on interrupt --- src/peripherals/avrdx-slpctrl.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/peripherals') diff --git a/src/peripherals/avrdx-slpctrl.ts b/src/peripherals/avrdx-slpctrl.ts index 307810e..d592593 100644 --- a/src/peripherals/avrdx-slpctrl.ts +++ b/src/peripherals/avrdx-slpctrl.ts @@ -31,6 +31,10 @@ export class AVRDxSLPCTRL { this.handleSleep(); }; + cpu.onBeforeInterrupt = () => { + this.sleeping = null; + }; + this.callbacks = []; } -- cgit v1.2.3