Skip to content

Commit

Permalink
0.95.1 - Make socketCAN CAN channel nonblocking
Browse files Browse the repository at this point in the history
  • Loading branch information
rnd-ash committed Sep 13, 2023
1 parent 122d38a commit 965607c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ecu_diagnostics"
version = "0.95.0"
version = "0.95.1"
authors = ["Ashcon Mohseninia <[email protected]>"]
edition = "2021"
description = "A rust crate for ECU diagnostic servers and communication APIs"
Expand Down
2 changes: 1 addition & 1 deletion src/hardware/socketcan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl PacketChannel<CanFrame> for SocketCanCanChannel {
}
let channel = socketcan::CANSocket::open(&self.device.info.name)?;
channel.filter_accept_all()?;
channel.set_nonblocking(false)?;
channel.set_nonblocking(true)?;
self.channel = Some(channel);
self.device.canbus_active.store(true, Ordering::Relaxed);
Ok(())
Expand Down

0 comments on commit 965607c

Please sign in to comment.