Skip to content

Commit

Permalink
modified: src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmartin committed Aug 14, 2024
1 parent 1381bd9 commit e2bdc01
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,13 @@ void PedestrianPlugin::UpdateConfigSettings()
// This method does NOT execute in the main thread, so variables must be protected
// (e.g. using std::atomic, std::mutex, etc.).

std::lock_guard<mutex> lock(_cfgLock);
GetConfigValue<std::string>("WebServiceIP", webip);
GetConfigValue<uint16_t>("WebServicePort", webport);
GetConfigValue<std::string>("WebSocketHost", webSocketIP);
GetConfigValue<std::string>("WebSocketPort", webSocketURLExt);
GetConfigValue<std::string>("DataProvider", dataprovider);
GetConfigValue<float>("FLIRCameraRotation", cameraRotation);
GetConfigValue<std::string>("HostString", hostString);
GetConfigValue<std::string>("WebServiceIP", webip, &_cfgLock);
GetConfigValue<uint16_t>("WebServicePort", webport, &_cfgLock);
GetConfigValue<std::string>("WebSocketHost", webSocketIP, &_cfgLock);
GetConfigValue<std::string>("WebSocketPort", webSocketURLExt, &_cfgLock);
GetConfigValue<std::string>("DataProvider", dataprovider, &_cfgLock);
GetConfigValue<float>("FLIRCameraRotation", cameraRotation, &_cfgLock);
GetConfigValue<std::string>("HostString", hostString, &_cfgLock);

PLOG(logDEBUG) << "Pedestrian data provider: " << dataprovider;

Expand Down

0 comments on commit e2bdc01

Please sign in to comment.