Skip to content

Commit

Permalink
Merge pull request #368 from Wetmelon/wetmelon/isfull_return
Browse files Browse the repository at this point in the history
Add missing return statement in SyncCanMsgRingbuffer::isFull()
  • Loading branch information
aentinger committed Aug 21, 2024
2 parents 5748045 + 9fc49bd commit 4606b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Arduino_CAN/src/SyncCanMsgRingbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SyncCanMsgRingbuffer
SyncCanMsgRingbuffer() : _can_msg_buf{} { }


bool isFull() const { synchronized { _can_msg_buf.isFull(); } }
bool isFull() const { synchronized { return _can_msg_buf.isFull(); } }
void enqueue(CanMsg const & msg) { synchronized { _can_msg_buf.enqueue(msg); } }

bool isEmpty() const { synchronized { return _can_msg_buf.isEmpty(); } }
Expand Down

0 comments on commit 4606b85

Please sign in to comment.