From 24b3f54a0ac73e5a59caf61ae1bbcd5a3f43ce61 Mon Sep 17 00:00:00 2001 From: Apexo Date: Wed, 1 Apr 2026 16:12:45 +0200 Subject: fix slpctrl --- src/peripherals/avrdx-slpctrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peripherals/avrdx-slpctrl.ts b/src/peripherals/avrdx-slpctrl.ts index 93cae58..1e75c12 100644 --- a/src/peripherals/avrdx-slpctrl.ts +++ b/src/peripherals/avrdx-slpctrl.ts @@ -29,7 +29,7 @@ export class AVRDxSLPCTRL { const nextEvent = (this.cpu as any).nextClockEvent; if (nextEvent) { - this.sleepUntil = Math.min(this.sleepUntil, nextEvent.cycles); + this.sleepUntil = nextEvent.cycles; } } } -- cgit v1.2.3