Use reference to temperature logger, more concise.

This commit is contained in:
Jared Boone 2015-12-17 12:16:26 -08:00
parent c92138f4b3
commit c3116eac63

View File

@ -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;