diff options
Diffstat (limited to 'tmk_core/protocol/midi/bytequeue/bytequeue.c')
| -rw-r--r-- | tmk_core/protocol/midi/bytequeue/bytequeue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tmk_core/protocol/midi/bytequeue/bytequeue.c b/tmk_core/protocol/midi/bytequeue/bytequeue.c index e36a9e66b1..0dd18680f0 100644 --- a/tmk_core/protocol/midi/bytequeue/bytequeue.c +++ b/tmk_core/protocol/midi/bytequeue/bytequeue.c | |||
| @@ -52,7 +52,9 @@ byteQueueIndex_t bytequeue_length(byteQueue_t* queue) { | |||
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | // we don't need to avoid interrupts if there is only one reader | 54 | // we don't need to avoid interrupts if there is only one reader |
| 55 | uint8_t bytequeue_get(byteQueue_t* queue, byteQueueIndex_t index) { return queue->data[(queue->start + index) % queue->length]; } | 55 | uint8_t bytequeue_get(byteQueue_t* queue, byteQueueIndex_t index) { |
| 56 | return queue->data[(queue->start + index) % queue->length]; | ||
| 57 | } | ||
| 56 | 58 | ||
| 57 | // we just update the start index to remove elements | 59 | // we just update the start index to remove elements |
| 58 | void bytequeue_remove(byteQueue_t* queue, byteQueueIndex_t numToRemove) { | 60 | void bytequeue_remove(byteQueue_t* queue, byteQueueIndex_t numToRemove) { |
