1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:52:44 +01:00

pkg/minmea: add minmea_getdate()

Add a fucntion to expose the internal `struct tm` that is populated
with the GPS date.

This allows for easy syncing the RTC with the GPS time without having
to convert back and forth between `struct tm` and `time_t`.

    struct tm now;
    minmea_getdate(&now, data, time);
    rtc_set_time(&now)

upstream PR: https://github.com/kosma/minmea/pull/45
This commit is contained in:
Benjamin Valentin 2020-02-13 15:52:03 +01:00
parent a055a6c579
commit 1f4b207b66

Binary file not shown.