Skip to content

Commit

Permalink
fix can watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
andtsa committed Jul 19, 2024
1 parent 4c2770a commit 8aede79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/core/communication/low/can.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ pub async fn can_receiving_handler(

#[embassy_executor::task]
async fn can_two_watchdog(event_sender: EventSender, data_sender: DataSender) {
Timer::after_secs(20).await;
Timer::after_secs(5).await;

send_data!(data_sender, Datatype::Info, Info::StartingCanWatchdog as u64);
let mut lv_trigger = true;
let mut hv_trigger = true;
loop {
Expand All @@ -187,5 +189,7 @@ async fn can_two_watchdog(event_sender: EventSender, data_sender: DataSender) {
} else {
hv_trigger = true;
}

Timer::after_millis(1000).await;
}
}
4 changes: 4 additions & 0 deletions config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,7 @@ colour = "red"
label = "LvBmsTimedOut"
colour = "red"

[[Info]]
label = "StartingCanWatchdog"
colour = "blue"

0 comments on commit 8aede79

Please sign in to comment.