diff options
Diffstat (limited to 'src/peripherals')
| -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 3ad787d..81451ba 100644 --- a/src/peripherals/usart.ts +++ b/src/peripherals/usart.ts @@ -210,7 +210,7 @@ export class AVRUSART { private get cyclesPerChar() { const symbolsPerChar = 1 + this.bitsPerChar + this.stopBits + (this.parityEnabled ? 1 : 0); - return (this.UBRR * this.multiplier + 1) * symbolsPerChar; + return (this.UBRR + 1) * this.multiplier * symbolsPerChar; } private get UBRR() { |
