From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Fri, 19 Jul 2024 12:52:44 +0000 (-0600) Subject: enhance garmin route writes for devices using D201_Rte_Hdr_Type. (#1297) X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2^2~90 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c6e490cdad207919f1d861972ffbd1f78b36c92;p=gpsbabel.git enhance garmin route writes for devices using D201_Rte_Hdr_Type. (#1297) which use GPS_PWay->rte_cmnt for the route name. --- diff --git a/garmin.cc b/garmin.cc index 732f12b09..9ffb56d5c 100644 --- a/garmin.cc +++ b/garmin.cc @@ -907,6 +907,11 @@ GarminFormat::route_hdr_pr(const route_head* rte) (*cur_tx_routelist_entry)->rte_num = rte->rte_num; (*cur_tx_routelist_entry)->isrte = 1; if (!rte->rte_name.isEmpty()) { + /* for devices that use D201_Rte_Hdr_Type */ + write_char_string((*cur_tx_routelist_entry)->rte_cmnt, + str_from_unicode(rte->rte_name).constData(), + sizeof((*cur_tx_routelist_entry)->rte_cmnt)); + /* for devices that use D202_Rte_Hdr_Type */ write_char_string((*cur_tx_routelist_entry)->rte_ident, str_from_unicode(rte->rte_name).constData(), sizeof((*cur_tx_routelist_entry)->rte_ident));