diff options
author | Reinhard Arlt <reinhard.arlt@t-online.de> | 2015-05-07 14:02:16 +0200 |
---|---|---|
committer | Reinhard Arlt <reinhard.arlt@t-online.de> | 2015-05-07 14:02:16 +0200 |
commit | a60101cbb3c578cb130580f7be04ec5203e8b6c2 (patch) | |
tree | 82db103d72fdd2f0dce086182f054e4262b2c74a /driver_nmea2000.c | |
parent | 2a6d94343bf0553fe2511e07c0a312468c202b21 (diff) | |
download | gpsd-a60101cbb3c578cb130580f7be04ec5203e8b6c2.tar.gz |
Fix wrong mask for ais.type1.status.
Diffstat (limited to 'driver_nmea2000.c')
-rw-r--r-- | driver_nmea2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_nmea2000.c b/driver_nmea2000.c index 3af734ca..73d08555 100644 --- a/driver_nmea2000.c +++ b/driver_nmea2000.c @@ -482,7 +482,7 @@ static gps_mask_t hnd_129038(unsigned char *bu, int len, PGN *pgn, struct gps_de ais->type1.radio = (unsigned int) (getleu32(bu, 18) & 0x7ffff); ais->type1.heading = (unsigned int) ais_direction((unsigned int)getleu16(bu, 21), 1.0); ais->type1.turn = ais_turn_rate((int)getles16(bu, 23)); - ais->type1.status = (unsigned int) ((bu[25] >> 0) & 0xff); + ais->type1.status = (unsigned int) ((bu[25] >> 0) & 0x0f); ais->type1.maneuver = 0; /* Not transmitted ???? */ decode_ais_channel_info(bu, len, 163, session); |