From dfebe6a62f7549aa858870cfc52de10e7ffd2fc5 Mon Sep 17 00:00:00 2001 From: dan-du-car Date: Mon, 19 Jul 2021 10:13:29 -0700 Subject: [PATCH] init --- src/v2i-hub/TimPlugin/src/TimPlugin.cpp | 5 ++--- src/v2i-hub/TimPlugin/src/XmlCurveParser.cpp | 5 ++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/v2i-hub/TimPlugin/src/TimPlugin.cpp b/src/v2i-hub/TimPlugin/src/TimPlugin.cpp index 39b184afa..248d73e63 100644 --- a/src/v2i-hub/TimPlugin/src/TimPlugin.cpp +++ b/src/v2i-hub/TimPlugin/src/TimPlugin.cpp @@ -295,8 +295,6 @@ int TimPlugin::Main() { //mapFileCopy = _mapFile; _isMapFileNew = false; } - if (_isTimLoaded) - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_TravelerInformation, &_tim); _isTimLoaded = LoadTim(&_tim, _mapFile.c_str()); } @@ -318,9 +316,10 @@ int TimPlugin::Main() { lastSendTime = time; TimMessage timMsg(_tim); - + //PLOG(logERROR) <<"timMsg XML to send....."<< timMsg<description->choice.path.offset.choice.xy.choice.nodes)); + NodeSetXY_t* nodeset_p = (NodeSetXY_t*) calloc(1, sizeof(NodeSetXY)); + ReadNodes(currentElement, nodeset_p); + geoPath->description->choice.path.offset.choice.xy.choice.nodes = *nodeset_p; + free(nodeset_p); } }