mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-14 20:52:12 -04:00
Method to read TemperatureLogger record capacity.
This commit is contained in:
parent
17d405ccec
commit
146a06b0d1
2 changed files with 7 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue