Skip to content

Commit

Permalink
ahhh
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Nov 12, 2024
1 parent 5148685 commit 2779874
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions stm32-modules/include/common/core/circular_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class CircularBuffer {
return false;
}

// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-constant-array-index)
(*_buffer)[_tail] = item;
_buffer->at(_tail) = item;
_tail = (_tail + 1) % MaxSize;

if (full() && _overwrite) {
Expand All @@ -41,8 +40,7 @@ class CircularBuffer {
if (empty()) {
return false;
}
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-constant-array-index)
item = (*_buffer)[_head];
item = _buffer->at(_head);
_head = (_head + 1) % MaxSize;
_count--;

Expand Down

0 comments on commit 2779874

Please sign in to comment.