File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33
44#include < cstdint>
55
6- #include < klib/queue .hpp>
6+ #include < klib/ringbuffer .hpp>
77
88namespace klib ::io::can {
99 // max data size for the 11/29 bit can frame
@@ -47,9 +47,9 @@ namespace klib::io::can {
4747 template <typename Can, uint32_t TxSize = 32 , uint32_t RxSize = 32 >
4848 class helper {
4949 protected:
50- // queues to store the data
51- static inline queue <can::frame, TxSize, queue_optimization::read > transmit;
52- static inline queue <can::frame, RxSize, queue_optimization::write > receive;
50+ // ringbuffers to store the data
51+ static inline ringbuffer <can::frame, TxSize> transmit;
52+ static inline ringbuffer <can::frame, RxSize> receive;
5353
5454 // flag if we are already transmitting
5555 static inline bool is_sending = false ;
You can’t perform that action at this time.
0 commit comments