Skip to content

Commit

Permalink
Whoops, floats are bad
Browse files Browse the repository at this point in the history
  • Loading branch information
Avamander committed Dec 3, 2021
1 parent eed863a commit 8b0e104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/displayapp/screens/Weather.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ std::unique_ptr<Screen> Weather::CreateScreenTemperature() {
} else {
lv_label_set_text_fmt(label,
"#FFFF00 Temperature#\n\n"
"#444444 %.2f#°C \n\n"
"#444444 %d#°C \n\n"
"#444444 %hd#\n\n"
"%llu\n"
"%lu\n",
current->temperature / 100.0f,
current->temperature / 100,
current->dewPoint,
current->timestamp,
current->expires);
Expand Down

0 comments on commit 8b0e104

Please sign in to comment.