diff --git a/rtic-sync/CHANGELOG.md b/rtic-sync/CHANGELOG.md index eff06983529..9d7856e213c 100644 --- a/rtic-sync/CHANGELOG.md +++ b/rtic-sync/CHANGELOG.md @@ -7,6 +7,10 @@ For each category, _Added_, _Changed_, _Fixed_ add new entries at the top! ## [Unreleased] +### Fixed + +- Const check for `channel::Channel` size smaller than 256 is now properly evaluated. + ### Changed - Un-hide lifetimes of output type in `Signal::split` to resolve a new warning. diff --git a/rtic-sync/src/channel.rs b/rtic-sync/src/channel.rs index aa05de65842..64c5ac9dc63 100644 --- a/rtic-sync/src/channel.rs +++ b/rtic-sync/src/channel.rs @@ -27,6 +27,8 @@ type WaitQueue = DoublyLinkedList; /// /// This channel uses critical sections, however there are extremely small and all `memcpy` /// operations of `T` are done without critical sections. +/// +/// Right now, the size of the queue `N` is limited to 255 elements. pub struct Channel { // Here are all indexes that are not used in `slots` and ready to be allocated. freeq: UnsafeCell>,