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 908a6becba
commit 908f0a5e9c
No known key found for this signature in database

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: