aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/timer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/peripherals/timer.ts')
-rw-r--r--src/peripherals/timer.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/peripherals/timer.ts b/src/peripherals/timer.ts
index 93b9d19..dfbba35 100644
--- a/src/peripherals/timer.ts
+++ b/src/peripherals/timer.ts
@@ -342,7 +342,10 @@ export class AVRTimer {
enableMask: this.config.OCIEC,
};
- constructor(private cpu: CPU, private config: AVRTimerConfig) {
+ constructor(
+ private cpu: CPU,
+ private config: AVRTimerConfig,
+ ) {
this.updateWGMConfig();
this.cpu.readHooks[config.TCNT] = (addr: u8) => {
this.count(false);