mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Use reference to temperature logger, more concise.
This commit is contained in:
parent
c92138f4b3
commit
c3116eac63
@ -60,10 +60,11 @@ void DebugMemoryView::focus() {
|
||||
/* TemperatureWidget *****************************************************/
|
||||
|
||||
void TemperatureWidget::paint(Painter& painter) {
|
||||
const auto history = portapack::temperature_logger.history();
|
||||
const auto logger = portapack::temperature_logger;
|
||||
|
||||
const auto rect = screen_rect();
|
||||
|
||||
const auto history = logger.history();
|
||||
for(size_t i=0; i<history.size(); i++) {
|
||||
const auto sample = history[i];
|
||||
const Dim bar_height = sample * 4;
|
||||
|
Loading…
Reference in New Issue
Block a user