From 702cdb21da657f5e4f98d28d0c8ad15607b75d91 Mon Sep 17 00:00:00 2001 From: Luke Marzen <98473324+lmarzen@users.noreply.github.com> Date: Sun, 5 Jan 2025 12:07:04 -0600 Subject: [PATCH] use default display init reset for despi #133 --- platformio/src/renderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio/src/renderer.cpp b/platformio/src/renderer.cpp index 78986f5f2..2c1a64ad0 100644 --- a/platformio/src/renderer.cpp +++ b/platformio/src/renderer.cpp @@ -451,7 +451,8 @@ void drawCurrentConditions(const owm_current_t ¤t, // uv index display.setFont(&FONT_12pt8b); - uint uvi = static_cast(std::max(std::round(current.uvi), 0.0f)); + unsigned int uvi = static_cast( + std::max(std::round(current.uvi), 0.0f)); dataStr = String(uvi); drawString(48, 204 + 17 / 2 + (48 + 8) * 2 + 48 / 2, dataStr, LEFT); display.setFont(&FONT_7pt8b);