summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-08-06 15:22:27 +0100
committerRoss Burton <ross@linux.intel.com>2009-08-06 15:22:27 +0100
commit7bf506b11cb69f434e2c17848ecbde8608e52d46 (patch)
tree007cbdad41a27af2f92b39b3e68dd17c3a5c670f
parent59c526d7ece23f3be8bbb364be2c114ef033c6b8 (diff)
Fix HORIZONAL typo
-rw-r--r--src/gypsy-client.c6
-rw-r--r--src/nmea-parser.c4
-rw-r--r--src/nmea.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/gypsy-client.c b/src/gypsy-client.c
index eb39e4a..52dc1f6 100644
--- a/src/gypsy-client.c
+++ b/src/gypsy-client.c
@@ -1311,15 +1311,15 @@ gypsy_client_set_accuracy (GypsyClient *client,
}
}
- if (fields_set & ACCURACY_HORIZONAL) {
- if (priv->accuracy_fields & ACCURACY_HORIZONAL) {
+ if (fields_set & ACCURACY_HORIZONTAL) {
+ if (priv->accuracy_fields & ACCURACY_HORIZONTAL) {
if (priv->hdop != hdop) {
priv->hdop = hdop;
changed = TRUE;
}
} else {
priv->hdop = hdop;
- priv->accuracy_fields |= ACCURACY_HORIZONAL;
+ priv->accuracy_fields |= ACCURACY_HORIZONTAL;
changed = TRUE;
}
}
diff --git a/src/nmea-parser.c b/src/nmea-parser.c
index 1736727..195a220 100644
--- a/src/nmea-parser.c
+++ b/src/nmea-parser.c
@@ -418,7 +418,7 @@ parse_gsa (NMEAParseContext *ctxt,
gypsy_client_set_accuracy
(ctxt->client,
*GSA_FIELD(14) ? ACCURACY_POSITION : 0 |
- *GSA_FIELD(15) ? ACCURACY_HORIZONAL : 0 |
+ *GSA_FIELD(15) ? ACCURACY_HORIZONTAL : 0 |
*GSA_FIELD(16) ? ACCURACY_VERTICAL : 0,
g_strtod (GSA_FIELD(14), NULL),
g_strtod (GSA_FIELD(15), NULL),
@@ -498,7 +498,7 @@ parse_gga (NMEAParseContext *ctxt,
}
gypsy_client_set_fix_type (ctxt->client, fix_type, FALSE);
- gypsy_client_set_accuracy (ctxt->client, ACCURACY_HORIZONAL,
+ gypsy_client_set_accuracy (ctxt->client, ACCURACY_HORIZONTAL,
0, g_strtod (GGA_FIELD(7), NULL), 0);
return TRUE;
diff --git a/src/nmea.h b/src/nmea.h
index 3c2750d..514aabc 100644
--- a/src/nmea.h
+++ b/src/nmea.h
@@ -39,7 +39,7 @@ typedef enum {
typedef enum {
ACCURACY_NONE = 0,
ACCURACY_POSITION = 1 << 0, /* 3D */
- ACCURACY_HORIZONAL = 1 << 1, /* 2D */
+ ACCURACY_HORIZONTAL = 1 << 1, /* 2D */
ACCURACY_VERTICAL = 1 << 2, /* Altitude */
} AccuracyFields;