walk96: fix builing errors (api mismatch)

This commit is contained in:
Davide Gerhard 2019-08-30 10:36:51 +02:00
parent 6f8ac80afd
commit de98f26229
No known key found for this signature in database
GPG Key ID: 7CBEFA144857DC97
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ int main (int argc, char *argv[])
// USB GPS happens to be COM22 // USB GPS happens to be COM22
memset (&config, 0, sizeof(config)); 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); 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, 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 G_UNKNOWN, G_UNKNOWN, G_UNKNOWN, "", // PHGd
(int)roundf(course), (int)roundf(knots), (int)roundf(course), (int)roundf(knots),