mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 23:39:29 -05: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 {
|
||||
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 {
|
||||
|
@ -34,6 +34,7 @@ public:
|
||||
void second_tick();
|
||||
|
||||
size_t size() const;
|
||||
size_t capacity() const;
|
||||
|
||||
std::vector<sample_t> history() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user