The optional "status" field (aka fix type), is a modifier (adjective) to
mode. It is not a replacement for, or superset of, the "mode" field. It
is almost, but not quite, the same as the NMEA 4.x xxGGA GPS Quality
Indicator Values. Many GNSS receivers do not supply it. Those that do
interpret the specification in various incompatible ways.
So from my understanding, status field is optional and STATUS_NO_FIX has
been explicitly renamed into STATUS_UNK to avoid confusion with
MODE_NO_FIX (which is already handled by gpsdclient.c). I would advise
to drop the if block to really fix the build failure.
This reverts commit 69ae23be9f96b9e7dd68a0252f3ad05986bb222d. Indeed, here is an extract of https://gpsd.gitlab.io/gpsd/gpsd_json.html:
So from my understanding, status field is optional and
STATUS_NO_FIX
has been explicitly renamed intoSTATUS_UNK
to avoid confusion withMODE_NO_FIX
(which is already handled bygpsdclient.c
). I would advise to drop theif
block to really fix the build failure.Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com