allow defining custom MINMEA_MAX_SENTENCE_LENGTH

This commit is contained in:
Kosma Moczek 2022-06-03 01:26:13 +02:00
parent 1e2f0af7d8
commit c0d2f58128
2 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,9 @@ Minmea runs out-of-the-box under most Unix-compatible systems. Support for non-U
1. Define `MINMEA_INCLUDE_COMPAT` in the build environment.
2. Add appropriate compatibility header from under `compat/` directory as `minmea_compat.h`.
If your GPS receiver outputs very long sentences, consider increasing `MINMEA_MAX_SENTENCE_LENGTH`
in your build environment.
## Fractional number format
Internally, minmea stores fractional numbers as pairs of two integers: ``{value, scale}``.

View File

@ -23,7 +23,9 @@ extern "C" {
#include <minmea_compat.h>
#endif
#ifndef MINMEA_MAX_SENTENCE_LENGTH
#define MINMEA_MAX_SENTENCE_LENGTH 80
#endif
enum minmea_sentence_id {
MINMEA_INVALID = -1,