From 52c4caa6a989c73c9888e200a36eb5cce64b688b Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sat, 7 Dec 2019 12:57:04 +0200 Subject: test(usart): more USART tests --- src/usart.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usart.ts') 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; }; -- cgit v1.2.3