diff options
Diffstat (limited to 'src/peripherals/usart.ts')
| -rw-r--r-- | src/peripherals/usart.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripherals/usart.ts b/src/peripherals/usart.ts index c1d6f13..eb6171e 100644 --- a/src/peripherals/usart.ts +++ b/src/peripherals/usart.ts @@ -100,7 +100,7 @@ export class AVRUSART { avrInterrupt(this.cpu, this.config.dataRegisterEmptyInterrupt); this.cpu.data[this.config.UCSRA] &= ~UCSRA_UDRE; } - if (ucsrb & UCSRA_TXC && ucsrb & UCSRB_TXCIE) { + if (ucsra & UCSRA_TXC && ucsrb & UCSRB_TXCIE) { avrInterrupt(this.cpu, this.config.txCompleteInterrupt); this.cpu.data[this.config.UCSRA] &= ~UCSRA_TXC; } |
