aboutsummaryrefslogtreecommitdiff
path: root/src/usart.ts
diff options
context:
space:
mode:
authorUri Shaked2019-12-07 12:57:04 +0200
committerUri Shaked2019-12-07 12:57:04 +0200
commit52c4caa6a989c73c9888e200a36eb5cce64b688b (patch)
tree3bd17a69e0dc0da065c0dfbfe7be925b25423f2a /src/usart.ts
parentfix(demo): speed up execution (diff)
downloadavr8js-52c4caa6a989c73c9888e200a36eb5cce64b688b.tar.gz
avr8js-52c4caa6a989c73c9888e200a36eb5cce64b688b.tar.bz2
avr8js-52c4caa6a989c73c9888e200a36eb5cce64b688b.zip
test(usart): more USART tests
Diffstat (limited to '')
-rw-r--r--src/usart.ts2
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;
};