mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-02-02 22:46:35 +11:00
Increment byte_written after write has happened.
Co-authored-by: tdittr <tdittr@users.noreply.github.com>
This commit is contained in:
parent
b9080d0a92
commit
f9254fdffa
1 changed files with 3 additions and 3 deletions
|
@ -209,12 +209,12 @@ impl<D: UARTDevice> UARTPeripheral<Enabled, D> {
|
|||
}
|
||||
}
|
||||
|
||||
bytes_written += 1;
|
||||
|
||||
self.device.uartdr.write(|w| unsafe {
|
||||
w.data().bits(*c);
|
||||
w
|
||||
})
|
||||
});
|
||||
|
||||
bytes_written += 1;
|
||||
}
|
||||
Ok(bytes_written)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue