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 8e45cb2 commit c74d321Copy full SHA for c74d321
CHANGELOG.md
@@ -6,6 +6,9 @@ SSD1306 monochrome OLED display.
6
<!-- next-header -->
7
8
## [Unreleased] - ReleaseDate
9
+### Fixed
10
+- Fix TerminalMode::write_str() to write all chars ([#228](https://github.com/rust-embedded-community/ssd1306/issues/228))
11
+
12
## [0.10.0] - 2025-03-22
13
### Changed
14
- Added `DisplaySize64x32` to the prelude
src/mode/terminal.rs
@@ -624,7 +624,8 @@ where
624
SIZE: TerminalDisplaySize,
625
{
626
fn write_str(&mut self, s: &str) -> Result<(), fmt::Error> {
627
- s.chars().map(move |c| self.print_char(c)).next_back();
628
- Ok(())
+ s.chars()
+ .try_for_each(|c| self.print_char(c))
629
+ .map_err(|_| fmt::Error)
630
}
631
0 commit comments