diff options
| author | Uri Shaked | 2020-05-04 21:59:43 +0300 |
|---|---|---|
| committer | Uri Shaked | 2020-05-04 21:59:43 +0300 |
| commit | d9dc3c8a6161f3696bdddbbde9e4ee408ece425a (patch) | |
| tree | 569a73c27c0fcd4363bd4af79655321453a8ebb3 | |
| parent | chore: release 0.8.4 (diff) | |
| download | avr8js-d9dc3c8a6161f3696bdddbbde9e4ee408ece425a.tar.gz avr8js-d9dc3c8a6161f3696bdddbbde9e4ee408ece425a.tar.bz2 avr8js-d9dc3c8a6161f3696bdddbbde9e4ee408ece425a.zip | |
fix(timer): stop Timer 2 when all CS bits are 0
close #44
| -rw-r--r-- | src/peripherals/timer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
