We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00cea56 commit 22f6bd4Copy full SHA for 22f6bd4
src/peripherals/timer.ts
@@ -363,15 +363,16 @@ export class AVRTimer {
363
}
364
this.tcntUpdated = false;
365
if (this.cpu.interruptsEnabled) {
366
- if (this.TIFR & TOV && this.TIMSK & TOIE) {
+ const { TIFR, TIMSK } = this;
367
+ if (TIFR & TOV && TIMSK & TOIE) {
368
avrInterrupt(this.cpu, this.config.ovfInterrupt);
369
this.TIFR &= ~TOV;
370
- if (this.TIFR & OCFA && this.TIMSK & OCIEA) {
371
+ if (TIFR & OCFA && TIMSK & OCIEA) {
372
avrInterrupt(this.cpu, this.config.compAInterrupt);
373
this.TIFR &= ~OCFA;
374
- if (this.TIFR & OCFB && this.TIMSK & OCIEB) {
375
+ if (TIFR & OCFB && TIMSK & OCIEB) {
376
avrInterrupt(this.cpu, this.config.compBInterrupt);
377
this.TIFR &= ~OCFB;
378
0 commit comments