Fix circular buffer index
Index was previously not being increased as statement could not be reached
This commit is contained in:
parent
908a6becba
commit
908f0a5e9c
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:
|
||||
|
|
Reference in a new issue