Skip to content

Commit

Permalink
#29 update example crate
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinAbdelhamid committed Oct 14, 2024
1 parent 1568a6e commit 783ed8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ fn main() -> ! {
let mut receive_buffer = [0u8; 8];

loop {
can_controller.transmit(&can_message).unwrap();
can_controller.transmit(&can_message, true).unwrap();
uart.write_raw(b"can message sent\n\r").unwrap();

timer.delay_ms(500);

match can_controller.receive(&mut receive_buffer) {
match can_controller.receive(&mut receive_buffer, true) {
Ok(_) => {
uart.write_fmt(format_args!("can message received\n\r")).unwrap();

Expand Down

0 comments on commit 783ed8f

Please sign in to comment.