mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-04 12:02:28 +00:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
@@ -28,25 +28,25 @@
|
||||
#include <vector>
|
||||
|
||||
class TemperatureLogger {
|
||||
public:
|
||||
using sample_t = uint8_t;
|
||||
public:
|
||||
using sample_t = uint8_t;
|
||||
|
||||
void second_tick();
|
||||
void second_tick();
|
||||
|
||||
size_t size() const;
|
||||
size_t capacity() const;
|
||||
|
||||
std::vector<sample_t> history() const;
|
||||
size_t size() const;
|
||||
size_t capacity() const;
|
||||
|
||||
private:
|
||||
std::array<sample_t, 128> samples { };
|
||||
std::vector<sample_t> history() const;
|
||||
|
||||
static constexpr size_t sample_interval = 5;
|
||||
size_t sample_phase = 0;
|
||||
size_t samples_count = 0;
|
||||
private:
|
||||
std::array<sample_t, 128> samples{};
|
||||
|
||||
sample_t read_sample();
|
||||
void push_sample(const sample_t sample);
|
||||
static constexpr size_t sample_interval = 5;
|
||||
size_t sample_phase = 0;
|
||||
size_t samples_count = 0;
|
||||
|
||||
sample_t read_sample();
|
||||
void push_sample(const sample_t sample);
|
||||
};
|
||||
|
||||
#endif/*__TEMPERATURE_LOGGER_H__*/
|
||||
#endif /*__TEMPERATURE_LOGGER_H__*/
|
||||
|
||||
Reference in New Issue
Block a user