Skip to content

Commit

Permalink
Fix rs485 example.
Browse files Browse the repository at this point in the history
  • Loading branch information
de-vri-es committed Apr 23, 2024
1 parent 5bd103c commit 5a58340
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Unreleased
- [add][minor] Add a "doc-stubs" feature to enable all feature and platform specific items with stubs for documentation purposes.
- [add][minor] Add a "doc" feature to enable all feature and platform specific items with stubs for documentation purposes.

# Version 0.2.22 - 2024-04-23
- [add][minor] Add `SerialPort::set_rs4xx_mode()` and `get_rs4xx_mode()` behind `rs4xx` feature flag.
Expand Down
2 changes: 1 addition & 1 deletion examples/rs485.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn main() -> std::io::Result<()> {
let mut rs485_config = Rs485Config::new();
rs485_config.set_bus_termination(true);
rs485_config.set_full_duplex(true);
serial_port.set_rs4xx_mode(&rs485_config.into())?;
serial_port.set_rs4xx_mode(rs485_config)?;

loop {
serial_port.write(b"test").unwrap();
Expand Down

0 comments on commit 5a58340

Please sign in to comment.