Use 8 bits per char

This commit is contained in:
Seth Morabito 2022-09-13 20:01:04 -07:00
parent 31f1008458
commit 73ea34e619
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ impl Default for Duart {
/// Compute the delay rate to wait for the next transmit or receive
fn delay_rate(csr_bits: u8, acr_bits: u8) -> Duration {
const NS_PER_SEC: u32 = 1_000_000_000;
const BITS_PER_CHAR: u32 = 10;
const BITS_PER_CHAR: u32 = 8;
let baud_bits: usize = ((csr_bits >> 4) & 0xf) as usize;
let baud_rate = if acr_bits & 0x80 == 0 {