From d9dc3c8a6161f3696bdddbbde9e4ee408ece425a Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Mon, 4 May 2020 21:59:43 +0300 Subject: fix(timer): stop Timer 2 when all CS bits are 0 close #44 --- src/peripherals/timer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/peripherals') diff --git a/src/peripherals/timer.ts b/src/peripherals/timer.ts index 7cae2ac..4e75fb1 100644 --- a/src/peripherals/timer.ts +++ b/src/peripherals/timer.ts @@ -115,7 +115,7 @@ export const timer2Config: AVRTimerConfig = { TCCRC: 0, // not available TIMSK: 0x70, dividers: { - 0: 1, + 0: 0, 1: 1, 2: 8, 3: 32, -- cgit v1.2.3