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 --- avr8js | 2 +- src/peripherals/avrdx-slpctrl.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/avr8js b/avr8js index 6336d47..d458230 160000 --- a/avr8js +++ b/avr8js @@ -1 +1 @@ -Subproject commit 6336d478f7e046e45379c6996451b399e90b5bf1 +Subproject commit d45823035b7f32ed0fbcc6a81da56ef1e3b50eec 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