From c3116eac6350b2a6c4b721320295df662455734c Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 17 Dec 2015 12:16:26 -0800 Subject: [PATCH] Use reference to temperature logger, more concise. --- firmware/application/ui_debug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/application/ui_debug.cpp b/firmware/application/ui_debug.cpp index b4355e45b..fe64e7395 100644 --- a/firmware/application/ui_debug.cpp +++ b/firmware/application/ui_debug.cpp @@ -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