Skip to content

Commit

Permalink
use default display init reset for despi #133
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarzen committed Jan 5, 2025
1 parent c7b343d commit 702cdb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platformio/src/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ void drawCurrentConditions(const owm_current_t &current,

// uv index
display.setFont(&FONT_12pt8b);
uint uvi = static_cast<uint>(std::max(std::round(current.uvi), 0.0f));
unsigned int uvi = static_cast<unsigned int>(
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);
Expand Down

0 comments on commit 702cdb2

Please sign in to comment.