[riot-commits] [RIOT-OS/RIOT] 1f4b20: pkg/minmea: add minmea_getdate()

Kaspar Schleiser noreply at github.com
Fri Feb 14 13:16:49 CET 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 1f4b207b6657c12267d9bd3e292c3667cc88de51
      https://github.com/RIOT-OS/RIOT/commit/1f4b207b6657c12267d9bd3e292c3667cc88de51
  Author: Benjamin Valentin <benjamin.valentin at ml-pa.com>
  Date:   2020-02-13 (Thu, 13 Feb 2020)

  Changed paths:
    A pkg/minmea/patches/0001-add-minmea_getdate.patch

  Log Message:
  -----------
  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


  Commit: 0e385d01c06267cbaaa6c4c1f89135657b8e6dc4
      https://github.com/RIOT-OS/RIOT/commit/0e385d01c06267cbaaa6c4c1f89135657b8e6dc4
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2020-02-14 (Fri, 14 Feb 2020)

  Changed paths:
    A pkg/minmea/patches/0001-add-minmea_getdate.patch

  Log Message:
  -----------
  Merge pull request #13372 from benpicco/pkg/minmea_getdate

pkg/minmea: add minmea_getdate()


Compare: https://github.com/RIOT-OS/RIOT/compare/da78d03e95ec...0e385d01c062


More information about the commits mailing list