Skip to content

Commit

Permalink
issued:iceoryx2 0.4 to 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
youngday committed Feb 21, 2025
1 parent cc2d36e commit 446b7a3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
38 changes: 19 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions examples/dds_iceoryx2/publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let publisher = service.publisher_builder().create()?;

let mut counter: u64 = 0;

while let NodeEvent::Tick = node.wait(CYCLE_TIME) {
while node.wait(CYCLE_TIME).is_ok() {
counter += 1;
let sample = publisher.loan_uninit()?;

Expand Down
2 changes: 1 addition & 1 deletion examples/dds_iceoryx2/subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

let subscriber = service.subscriber_builder().create()?;

while let NodeEvent::Tick = node.wait(CYCLE_TIME) {
while node.wait(CYCLE_TIME).is_ok() {
while let Some(sample) = subscriber.receive()? {
println!("received: {:?}", *sample);
}
Expand Down

0 comments on commit 446b7a3

Please sign in to comment.