summaryrefslogtreecommitdiff
path: root/driver_nmea2000.c
diff options
context:
space:
mode:
authorReinhard Arlt <reinhard.arlt@t-online.de>2013-10-30 00:14:38 +0100
committerReinhard Arlt <reinhard.arlt@t-online.de>2013-10-30 00:14:38 +0100
commit03666f29eef5ad9e077e5cc54621767c907b732f (patch)
tree3af38fdc27aa3089df08ae1bf5ddf3a1d973b1c1 /driver_nmea2000.c
parentfc00242494787c13d6767ca7b5e3778ebc6f64df (diff)
downloadgpsd-03666f29eef5ad9e077e5cc54621767c907b732f.tar.gz
A few cleanups.
Diffstat (limited to 'driver_nmea2000.c')
-rw-r--r--driver_nmea2000.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/driver_nmea2000.c b/driver_nmea2000.c
index ef30c836..17fcd470 100644
--- a/driver_nmea2000.c
+++ b/driver_nmea2000.c
@@ -1093,9 +1093,9 @@ static PGN pwrpgn[] = {{ 59392, 0, 0, hnd_059392, &msg_059392[0]},
{126464, 1, 0, hnd_126464, &msg_126464[0]},
{126992, 0, 0, hnd_126992, &msg_126992[0]},
{126996, 1, 0, hnd_126996, &msg_126996[0]},
- {127506, 1, 2, hnd_127506, &msg_127506[0]},
- {127508, 1, 2, hnd_127508, &msg_127508[0]},
- {127513, 1, 2, hnd_127513, &msg_127513[0]},
+ {127506, 1, 3, hnd_127506, &msg_127506[0]},
+ {127508, 1, 3, hnd_127508, &msg_127508[0]},
+ {127513, 1, 3, hnd_127513, &msg_127513[0]},
{0 , 0, 0, NULL, &msg_error [0]}};
static PGN navpgn[] = {{ 59392, 0, 0, hnd_059392, &msg_059392[0]},
@@ -1104,14 +1104,14 @@ static PGN navpgn[] = {{ 59392, 0, 0, hnd_059392, &msg_059392[0]},
{126464, 1, 0, hnd_126464, &msg_126464[0]},
{126992, 0, 0, hnd_126992, &msg_126992[0]},
{126996, 1, 0, hnd_126996, &msg_126996[0]},
- {127245, 0, 2, hnd_127245, &msg_127245[0]},
- {127250, 0, 2, hnd_127250, &msg_127250[0]},
- {128259, 0, 2, hnd_128259, &msg_128259[0]},
- {128267, 0, 2, hnd_128267, &msg_128267[0]},
- {128275, 1, 2, hnd_128275, &msg_128275[0]},
- {130306, 0, 2, hnd_130306, &msg_130306[0]},
- {130310, 0, 2, hnd_130310, &msg_130310[0]},
- {130311, 0, 2, hnd_130311, &msg_130311[0]},
+ {127245, 0, 4, hnd_127245, &msg_127245[0]},
+ {127250, 0, 4, hnd_127250, &msg_127250[0]},
+ {128259, 0, 4, hnd_128259, &msg_128259[0]},
+ {128267, 0, 4, hnd_128267, &msg_128267[0]},
+ {128275, 1, 4, hnd_128275, &msg_128275[0]},
+ {130306, 0, 4, hnd_130306, &msg_130306[0]},
+ {130310, 0, 4, hnd_130310, &msg_130310[0]},
+ {130311, 0, 4, hnd_130311, &msg_130311[0]},
{0 , 0, 0, NULL, &msg_error [0]}};
@@ -1235,7 +1235,7 @@ static void find_pgn(struct can_frame *frame, struct gps_device_t *session)
pgnlist = &navpgn[0];
work = search_pgnlist(source_pgn, pgnlist);
}
- if ((work != 0) && (work->type > 0)) {
+ if ((work != NULL) && (work->type > 0)) {
session->driver.nmea2000.pgnlist = pgnlist;
}
}