Skip to content

Commit

Permalink
Remove unused dependency and import
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdewid committed Feb 2, 2024
1 parent 7566b82 commit f5bbdc0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion hcu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ panic-halt = "0.2.0"
systick-monotonic = "1.0"
cortex-m-rtic = { version = "1.1.4" }
stm32h7xx-hal = { version = "0.15.1", features = ["stm32h743v", "rt", "can"] }
fdcan = { version = "0.2.0", features = ["fdcan_h7"] }
vecraft = { version = "0.2.0", path = "../vecraft" }

[[bin]]
Expand Down
13 changes: 7 additions & 6 deletions hcu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ mod app {
use stm32h7xx_hal::system_watchdog::{Event::EarlyWakeup, SystemWindowWatchdog};
use systick_monotonic::Systick;

use vecraft::fdcan;
use vecraft::j1939::{protocol, FrameBuilder, IdBuilder, NameBuilder, PGN};

/// 100 Hz / 10 ms granularity
Expand Down Expand Up @@ -265,9 +266,9 @@ mod app {
.vehicle_system(9)
.build();

let frame = protocol::address_claimed(crate::NET_ADDRESS, name);

ctx.shared.canbus1.lock(|canbus1| canbus1.send(frame));
ctx.shared
.canbus1
.lock(|canbus1| canbus1.send(protocol::address_claimed(crate::NET_ADDRESS, name)));

#[cfg(debug_assertions)]
ctx.shared.console.lock(|console| {
Expand Down Expand Up @@ -406,9 +407,9 @@ mod app {

ctx.shared.canbus1.lock(|canbus1| canbus1.send(frame));
} else {
let frame = protocol::acknowledgement(crate::NET_ADDRESS, pgn);

ctx.shared.canbus1.lock(|canbus1| canbus1.send(frame));
ctx.shared.canbus1.lock(|canbus1| {
canbus1.send(protocol::acknowledgement(crate::NET_ADDRESS, pgn))
});
}
}
PGN::ProprietarilyConfigurableMessage1 => {
Expand Down
1 change: 1 addition & 0 deletions vecraft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#![no_main]
#![no_std]

pub use fdcan;
pub use j1939;

pub mod can;
Expand Down

0 comments on commit f5bbdc0

Please sign in to comment.