InfiniTimeOrg / InfiniTime

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

weather: Add some heuristics to GetCurrent* #1882

Closed FintasticMan closed 7 months ago

FintasticMan commented 8 months ago

This means that there is a higher likelihood that the returned event is the most up-to-date current event. It chooses the event with the lowest expiry, and between events with the same expiry, it chooses the one with the latest timestamp.

Alternative to #1878.

I'm not the best when it comes to working with references to unique_ptrs etc, so if there's a better way to keep track of the best option so far, I'd like to hear it.

github-actions[bot] commented 8 months ago
Build size and comparison to main: Section Size Difference
text 376880B 80B
data 940B 0B
bss 63420B 0B
FintasticMan commented 7 months ago

Superseded by #1890.