diff options
| author | Apexo | 2026-04-01 16:12:45 +0200 |
|---|---|---|
| committer | Apexo | 2026-04-01 16:12:45 +0200 |
| commit | 24b3f54a0ac73e5a59caf61ae1bbcd5a3f43ce61 (patch) | |
| tree | 62aa640c99f96e6fffa44c4be9b3a377195be4e8 /src/peripherals/avrdx-slpctrl.ts | |
| parent | fix port interrupt handling (diff) | |
| download | anduril-sim-24b3f54a0ac73e5a59caf61ae1bbcd5a3f43ce61.tar.gz anduril-sim-24b3f54a0ac73e5a59caf61ae1bbcd5a3f43ce61.tar.bz2 anduril-sim-24b3f54a0ac73e5a59caf61ae1bbcd5a3f43ce61.zip | |
fix slpctrl
Diffstat (limited to 'src/peripherals/avrdx-slpctrl.ts')
| -rw-r--r-- | src/peripherals/avrdx-slpctrl.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } } |
