mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 01:15:38 -04: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:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -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__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue