From de98f26229e4b9fdc7a62e1c7f27455e366547d4 Mon Sep 17 00:00:00 2001 From: Davide Gerhard Date: Fri, 30 Aug 2019 10:36:51 +0200 Subject: [PATCH] walk96: fix builing errors (api mismatch) --- src/walk96.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/walk96.c b/src/walk96.c index dfad612..9fc791f 100644 --- a/src/walk96.c +++ b/src/walk96.c @@ -86,7 +86,7 @@ int main (int argc, char *argv[]) // USB GPS happens to be COM22 memset (&config, 0, sizeof(config)); - strlcpy (config.gpsnmea_port, "COM22", sizeof(config.nmea_port)); + strlcpy (config.gpsnmea_port, "COM22", sizeof(config.gpsnmea_port)); dwgps_init (&config, debug_gps); @@ -152,7 +152,7 @@ static void walk96 (int fix, double lat, double lon, float knots, float course, info_len = encode_position (messaging, compressed, - lat, lon, (int)(DW_METERS_TO_FEET(alt)), + lat, lon, 0, (int)(DW_METERS_TO_FEET(alt)), '/', '=', G_UNKNOWN, G_UNKNOWN, G_UNKNOWN, "", // PHGd (int)roundf(course), (int)roundf(knots),