We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546743a commit 4e263b1Copy full SHA for 4e263b1
TESTS/mbedmicro-rtos-mbed/CircularBuffer/main.cpp renamed to TESTS/mbed_platform/CircularBuffer/main.cpp
platform/CircularBuffer.h
@@ -92,12 +92,12 @@ class CircularBuffer {
92
core_util_critical_section_enter();
93
if (full()) {
94
_tail++;
95
- if(_tail == BufferSize) {
+ if (_tail == BufferSize) {
96
_tail = 0;
97
}
98
99
_pool[_head++] = data;
100
- if(_head == BufferSize) {
+ if (_head == BufferSize) {
101
_head = 0;
102
103
if (_head == _tail) {
@@ -117,7 +117,7 @@ class CircularBuffer {
117
118
if (!empty()) {
119
data = _pool[_tail++];
120
121
122
123
_full = false;
0 commit comments