InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.64k stars 902 forks source link

PineTimeStyle: fix brief display of weather dummy data #1942

Closed liamcharger closed 6 months ago

liamcharger commented 6 months ago

When navigating into the PineTimeStyle watch face and weather display is on, the weather icon is set as "cloudSunRain" until it is updated to the correct icon in the Refresh function. (This behavior is most prominent when navigating from the Quick Settings.) The "temperature" variable is not set until the Refresh function is called, so it displays "Text" until it is updated in the function. This PR aims to fix that by setting the default value of temperature to "--" and the weather icon to "ban".

github-actions[bot] commented 6 months ago
Build size and comparison to main: Section Size Difference
text 369560B 0B
data 940B 0B
bss 63516B 0B