summaryrefslogtreecommitdiff
path: root/driver_garmin.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-21 12:56:08 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-21 12:56:08 -0500
commita61e28529df634963c0967e59aae673f8fc7741e (patch)
tree2c8e5c9ed1ff63870f8a94bd33ecd08a9825caa7 /driver_garmin.c
parentf351f5981604338db80e2b2864b7dcb818e7fc61 (diff)
downloadgpsd-a61e28529df634963c0967e59aae673f8fc7741e.tar.gz
Easy splint cleanups. All regression tests pass.
Diffstat (limited to 'driver_garmin.c')
-rw-r--r--driver_garmin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/driver_garmin.c b/driver_garmin.c
index e9b15554..ead0ae87 100644
--- a/driver_garmin.c
+++ b/driver_garmin.c
@@ -564,11 +564,11 @@ gps_mask_t PrintSERPacket(struct gps_device_t *session, unsigned char pkt_id,
}
if ((int)sats->svid <= 32)
- session->gpsdata.skyview[j].PRN = (int)sats->svid; /* GPS */
+ session->gpsdata.skyview[j].PRN = (short)sats->svid; /* GPS */
else
- session->gpsdata.skyview[j].PRN = (int)sats->svid + 87; /* SBAS */
- session->gpsdata.skyview[j].azimuth = (int)GPSD_LE16TOH(sats->azmth);
- session->gpsdata.skyview[j].elevation = (int)sats->elev;
+ session->gpsdata.skyview[j].PRN = (short)sats->svid + 87; /* SBAS */
+ session->gpsdata.skyview[j].azimuth = (short)GPSD_LE16TOH(sats->azmth);
+ session->gpsdata.skyview[j].elevation = (short)sats->elev;
// Garmin does not document this. snr is in dB*100
// Known, but not seen satellites have a dB value of -1*100
session->gpsdata.skyview[j].ss = (float)(GPSD_LE16TOH(sats->snr) / 100.0);