Skip to content

Commit

Permalink
modified: src/v2i-hub/MapPlugin/src/MapPlugin.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmartin committed Apr 18, 2024
1 parent 1d2e0cc commit d298723
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/v2i-hub/MapPlugin/src/MapPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ bool MapPlugin::LoadMapFiles()
ISDToJ2735r41 converter(fn);
mapFile.set_Bytes(converter.to_encoded_message().get_payload_str());

PLOG(logINFO) << fn << "ISD file encoded as " << mapFile.get_Bytes();
PLOG(logINFO) << fn << " ISD file encoded as " << mapFile.get_Bytes();
}
else if (inType == "TXT")
{
Expand All @@ -264,7 +264,8 @@ bool MapPlugin::LoadMapFiles()
}

std::istringstream streamableContent(fileContent);
streamableContent >> bytes;
streamableContent >> bytes;
PLOG(logINFO) << fn << " MAP encoded bytes are " << bytes;
MapDataMessage *mapMsg = MapDataEncodedMessage::decode_j2735_message<codec::uper<MapDataMessage>>(bytes);
if (mapMsg) {
PLOG(logDEBUG) << "Map is " << *mapMsg;
Expand Down Expand Up @@ -356,7 +357,7 @@ bool MapPlugin::LoadMapFiles()
}
catch (exception &ex)
{
PLOG(logERROR) << "Unable to convert " << mapFile.get_FilePath() << " : " << ex.what();
PLOG(logERROR) << "Unable to convert " << mapFile.get_FilePath() << ": " << ex.what();
return false;
}
}
Expand Down

0 comments on commit d298723

Please sign in to comment.