Skip to content

Commit

Permalink
Fix decimal temperature display
Browse files Browse the repository at this point in the history
  • Loading branch information
KWottrich committed May 7, 2024
1 parent dbc2f1b commit 80557ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/TimelyFenixView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ class TimelyFenixView extends WatchUi.WatchFace {
var temperature;
var units;
if (_units == System.UNIT_METRIC) {
temperature = weather.temperature as Integer;
temperature = weather.temperature.toNumber();
units = "C" as String;
} else {
temperature = celsiusToFahrenheit(weather.temperature) as Integer;
temperature = celsiusToFahrenheit(weather.temperature).toNumber();
units = "F" as String;
}
bufferDc.drawText(190 + xOffsetText, 38 + yOffset, Graphics.FONT_TINY, temperature + _degreesSymbol + units, Graphics.TEXT_JUSTIFY_RIGHT);
Expand Down

0 comments on commit 80557ca

Please sign in to comment.