diff options
| author | Uri Shaked | 2019-12-07 12:57:04 +0200 |
|---|---|---|
| committer | Uri Shaked | 2019-12-07 12:57:04 +0200 |
| commit | 52c4caa6a989c73c9888e200a36eb5cce64b688b (patch) | |
| tree | 3bd17a69e0dc0da065c0dfbfe7be925b25423f2a /src/usart.ts | |
| parent | fix(demo): speed up execution (diff) | |
| download | avr8js-52c4caa6a989c73c9888e200a36eb5cce64b688b.tar.gz avr8js-52c4caa6a989c73c9888e200a36eb5cce64b688b.tar.bz2 avr8js-52c4caa6a989c73c9888e200a36eb5cce64b688b.zip | |
test(usart): more USART tests
Diffstat (limited to '')
| -rw-r--r-- | src/usart.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usart.ts b/src/usart.ts index 276207e..da5cee0 100644 --- a/src/usart.ts +++ b/src/usart.ts @@ -59,7 +59,7 @@ export class AVRUSART { public onByteTransmit: USARTTransmitCallback | null = null; constructor(private cpu: CPU, private config: USARTConfig, private freqMHz: number) { - this.cpu.writeHooks[config.UCSRA] = (value, oldValue) => { + this.cpu.writeHooks[config.UCSRA] = (value) => { this.cpu.data[config.UCSRA] = value | UCSRA_UDRE | UCSRA_TXC; return true; }; |
