Skip to content

Commit 4606b85

Browse files
authored
Merge pull request #368 from Wetmelon/wetmelon/isfull_return
Add missing return statement in SyncCanMsgRingbuffer::isFull()
2 parents 5748045 + 9fc49bd commit 4606b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/Arduino_CAN/src/SyncCanMsgRingbuffer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SyncCanMsgRingbuffer
3636
SyncCanMsgRingbuffer() : _can_msg_buf{} { }
3737

3838

39-
bool isFull() const { synchronized { _can_msg_buf.isFull(); } }
39+
bool isFull() const { synchronized { return _can_msg_buf.isFull(); } }
4040
void enqueue(CanMsg const & msg) { synchronized { _can_msg_buf.enqueue(msg); } }
4141

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

0 commit comments

Comments
 (0)