diff options
Diffstat (limited to 'src/peripherals/avrdx-slpctrl.ts')
| -rw-r--r-- | src/peripherals/avrdx-slpctrl.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/peripherals/avrdx-slpctrl.ts b/src/peripherals/avrdx-slpctrl.ts index d592593..730d128 100644 --- a/src/peripherals/avrdx-slpctrl.ts +++ b/src/peripherals/avrdx-slpctrl.ts @@ -15,7 +15,6 @@ export type SMODE = typeof SMODE_IDLE_gc | typeof SMODE_STDBY_gc | typeof SMODE_ export type SleepCallback = (mode: SMODE) => void; export class AVRDxSLPCTRL { - sleepUntil: number = 0; sleeping: null | SMODE = null; callbacks: SleepCallback[]; @@ -45,11 +44,6 @@ export class AVRDxSLPCTRL { const mode = ctrla & SMODE_gm; this.sleeping = mode as SMODE; - const nextEvent = (this.cpu as any).nextClockEvent; - if (nextEvent) { - this.sleepUntil = nextEvent.cycles; - } - for (const cb of this.callbacks) { cb(mode as SMODE); } |
