From 80557ca7bd553c0c264a22dec146efbe0802adc6 Mon Sep 17 00:00:00 2001 From: Kenny Wottrich Date: Tue, 7 May 2024 09:49:37 -0500 Subject: [PATCH] Fix decimal temperature display --- source/TimelyFenixView.mc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/TimelyFenixView.mc b/source/TimelyFenixView.mc index 8201088..56c6962 100644 --- a/source/TimelyFenixView.mc +++ b/source/TimelyFenixView.mc @@ -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);