Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert
  • Loading branch information
ScottGibb committed Apr 10, 2025
commit 41c3d6a3b75a9d9abdfa787d3132b695a79a9093
13 changes: 5 additions & 8 deletions src/rtde/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,13 @@ where
if let Some(size) = set_size {
payload.header.package_size = size;
Ok(payload)
} else {
} else if let Ok(size) = bincode::serialized_size(&payload) {
// TODO: Currently Not imleted in Bincode 2 ^
payload.header.package_size = size as u16;
Ok(payload)
} else {
Err(Error::Static("issue setting payload size"))
}
// } else if let Ok(size) = bincode::serialized_size(&payload) {
// // TODO: Currently Not imleted in Bincode 2 ^
// payload.header.package_size = size as u16;
// Ok(payload)
// } else {
// Err(Error::Static("issue setting payload size"))
// }
}
/// What type of Payload package do we have?
pub fn get_type(&self) -> PackageType {
Expand Down
Loading