aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/ring_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/ring_buffer.h')
-rw-r--r--tmk_core/ring_buffer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/tmk_core/ring_buffer.h b/tmk_core/ring_buffer.h
index 25fab638e..8f887c8f7 100644
--- a/tmk_core/ring_buffer.h
+++ b/tmk_core/ring_buffer.h
@@ -1,5 +1,5 @@
1#ifndef RING_BUFFER_H 1#pragma once
2#define RING_BUFFER_H 2
3/*-------------------------------------------------------------------- 3/*--------------------------------------------------------------------
4 * Ring buffer to store scan codes from keyboard 4 * Ring buffer to store scan codes from keyboard
5 *------------------------------------------------------------------*/ 5 *------------------------------------------------------------------*/
@@ -43,5 +43,3 @@ static inline bool rbuf_has_data(void) {
43static inline void rbuf_clear(void) { 43static inline void rbuf_clear(void) {
44 ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { rbuf_head = rbuf_tail = 0; } 44 ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { rbuf_head = rbuf_tail = 0; }
45} 45}
46
47#endif /* RING_BUFFER_H */