mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-08 13:08:35 +00:00
Method to read TemperatureLogger record capacity.
This commit is contained in:
parent
17d405ccec
commit
146a06b0d1
@ -33,7 +33,11 @@ void TemperatureLogger::second_tick() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
size_t TemperatureLogger::size() const {
|
size_t TemperatureLogger::size() const {
|
||||||
return std::min(samples.size(), samples_count);
|
return std::min(capacity(), samples_count);
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t TemperatureLogger::capacity() const {
|
||||||
|
return samples.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<TemperatureLogger::sample_t> TemperatureLogger::history() const {
|
std::vector<TemperatureLogger::sample_t> TemperatureLogger::history() const {
|
||||||
|
@ -34,6 +34,7 @@ public:
|
|||||||
void second_tick();
|
void second_tick();
|
||||||
|
|
||||||
size_t size() const;
|
size_t size() const;
|
||||||
|
size_t capacity() const;
|
||||||
|
|
||||||
std::vector<sample_t> history() const;
|
std::vector<sample_t> history() const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user