From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Fri, 19 Jul 2024 11:53:30 +0000 (-0600) Subject: don't send links with GPS_A200_Send. (#1295) X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2^2~91 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d9f6127d68074a77a0ad93372ade4fdacb24c44f;p=gpsbabel.git don't send links with GPS_A200_Send. (#1295) --- diff --git a/jeeps/gpsapp.cc b/jeeps/gpsapp.cc index 5a091e874..4b1441ed8 100644 --- a/jeeps/gpsapp.cc +++ b/jeeps/gpsapp.cc @@ -3152,9 +3152,6 @@ int32_t GPS_A200_Send(const char* port, GPS_PWay* way, int32_t n) gpsdevh* fd; GPS_Packet tra; GPS_Packet rec; - int32_t i; - int32_t len; - US method; if (!GPS_Device_On(port,&fd)) { return gps_errno; @@ -3172,7 +3169,10 @@ int32_t GPS_A200_Send(const char* port, GPS_PWay* way, int32_t n) } - for (i=0; iisrte) { method = LINK_ID[gps_link_type].Pid_Rte_Hdr; @@ -3190,6 +3190,8 @@ int32_t GPS_A200_Send(const char* port, GPS_PWay* way, int32_t n) GPS_Error("A200_Send: Unknown route protocol"); return PROTOCOL_ERROR; } + } else if (way[i]->islink) { + continue; // links not supported. can cause "Route Waypoint was Deleted" and "Received an Invalid WPT" on device. } else { method = LINK_ID[gps_link_type].Pid_Rte_Wpt_Data;