Fix circular buffer index

Index was previously not being increased as statement could not be reached
This commit is contained in:
GHOSCHT 2023-03-30 17:49:40 +02:00
parent 503c452674
commit f97ab5f58b

View file

@ -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: