Skip to content

Commit

Permalink
Send AsyncCanDriver (#516)
Browse files Browse the repository at this point in the history
* AsyncCanDriver is Send

* Update CHANGELOG.md
  • Loading branch information
leonardodanelutti authored Feb 12, 2025
1 parent 5c547a4 commit 575d5c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- `Send` for `AsyncCanDriver`

### Fixed
- Fix the SDMMC driver for ESP-IDF V5.5+

Expand Down
2 changes: 2 additions & 0 deletions src/can.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,8 @@ where
}
}

unsafe impl<'d, T> Send for AsyncCanDriver<'d, T> where T: BorrowMut<CanDriver<'d>> + Send {}

static READ_NOTIFICATION: Notification = Notification::new();
static WRITE_NOTIFICATION: Notification = Notification::new();
static ALERT_NOTIFICATION: Notification = Notification::new();
Expand Down

0 comments on commit 575d5c2

Please sign in to comment.