We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc8ed9 commit e019ee8Copy full SHA for e019ee8
src/peripherals/usart.ts
@@ -210,7 +210,7 @@ export class AVRUSART {
210
211
private get cyclesPerChar() {
212
const symbolsPerChar = 1 + this.bitsPerChar + this.stopBits + (this.parityEnabled ? 1 : 0);
213
- return (this.UBRR * this.multiplier + 1) * symbolsPerChar;
+ return (this.UBRR + 1) * this.multiplier * symbolsPerChar;
214
}
215
216
private get UBRR() {
0 commit comments