Fix circular buffer index
Index was previously not being increased as statement could not be reached
This commit is contained in:
parent
503c452674
commit
f97ab5f58b
1 changed files with 1 additions and 1 deletions
|
@ -10,8 +10,8 @@ public:
|
|||
/// @brief Warning: Does not deconstruct entry! If necessary use
|
||||
/// etl::circular_buffer instead!
|
||||
T &pop() {
|
||||
return buffer[index];
|
||||
index = (index + 1) % buffer.size();
|
||||
return buffer[index];
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue