allow defining custom MINMEA_MAX_SENTENCE_LENGTH
This commit is contained in:
parent
1e2f0af7d8
commit
c0d2f58128
@ -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.
|
1. Define `MINMEA_INCLUDE_COMPAT` in the build environment.
|
||||||
2. Add appropriate compatibility header from under `compat/` directory as `minmea_compat.h`.
|
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
|
## Fractional number format
|
||||||
|
|
||||||
Internally, minmea stores fractional numbers as pairs of two integers: ``{value, scale}``.
|
Internally, minmea stores fractional numbers as pairs of two integers: ``{value, scale}``.
|
||||||
|
2
minmea.h
2
minmea.h
@ -23,7 +23,9 @@ extern "C" {
|
|||||||
#include <minmea_compat.h>
|
#include <minmea_compat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MINMEA_MAX_SENTENCE_LENGTH
|
||||||
#define MINMEA_MAX_SENTENCE_LENGTH 80
|
#define MINMEA_MAX_SENTENCE_LENGTH 80
|
||||||
|
#endif
|
||||||
|
|
||||||
enum minmea_sentence_id {
|
enum minmea_sentence_id {
|
||||||
MINMEA_INVALID = -1,
|
MINMEA_INVALID = -1,
|
||||||
|
Loading…
Reference in New Issue
Block a user