Skip to content

Commit

Permalink
Run receive after clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
dmweis committed Feb 27, 2024
1 parent 031b654 commit dabab95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["David Weis <dweis7@gmail.com>"]
edition = "2021"
name = "dynamixel-driver"
version = "0.3.1"
version = "0.3.2"

description = "Driver for Dynamixel v1 servos"
documentation = "https://davidweis.dev/dynamixel-driver/dynamixel_driver/index.html"
Expand Down
1 change: 1 addition & 0 deletions src/serial_driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ impl FramedDriver for FramedSerialDriver {
.clear(tokio_serial::ClearBuffer::All)?;
self.framed_port.write_buffer_mut().clear();
self.framed_port.read_buffer_mut().clear();
_ = self.receive().await;
Ok(())
}
}
Expand Down

0 comments on commit dabab95

Please sign in to comment.