Merge pull request #3364 from hansihe/fix-fdcan-preemption-dequeued-frame-return

Fix return value of `fdcan` `write`
This commit is contained in:
Ulf Lilleengen 2024-09-23 08:09:17 +00:00 committed by GitHub
commit 81573b1a6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ Cargo.lock
third_party
/Cargo.toml
out/
.zed

View File

@ -200,7 +200,7 @@ impl Registers {
if header_reg.rtr().bit() {
F::new_remote(id, len as usize)
} else {
F::new(id, &data)
F::new(id, &data[0..(len as usize)])
}
} else {
// Abort request failed because the frame was already sent (or being sent) on