cleanup in logger code

This commit is contained in:
dario
2024-06-04 22:05:23 +02:00
parent 33e034a429
commit d378bda62c
2 changed files with 20 additions and 8 deletions

View File

@@ -58,12 +58,20 @@ namespace sta
size_t capacity();
/**
* @brief Allows reading a single data point from the segment.
* @brief Get the ith element stored in the flash storage.
*
* @param idx The index of the segement.
* @return T The read data value.
* @param i The index of the element to read.
* @return T The ith element stored in the flash storage.
*/
T operator[](std::size_t idx);
T get(std::size_t i);
/**
* @brief Get the ith element stored in the flash storage.
*
* @param i The index of the element to read.
* @return T The ith element stored in the flash storage.
*/
T operator[](std::size_t i);
private:
void findLast();