Skip to content

Commit

Permalink
update PR
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Jul 26, 2023
1 parent 680b94e commit f9b2190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/v2i-hub/CDASimAdapter/src/CDASimConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace CDASimAdapter{
populate_sensors_with_file(_sensor_json_file_path, _sensors_json_v);
if(_sensors_json_v.empty())
{
PLOG(logERROR) << "Sensors JSON is empty!" << std::endl;
PLOG(logWARNING) << "Sensors JSON is empty!" << std::endl;
}
if (!carma_simulation_handshake(_simulation_ip, _infrastructure_id, _simulation_registration_port, _local_ip, _time_sync_port, _v2x_port, _location, _sensors_json_v)) {
_connected = false;
Expand Down Expand Up @@ -224,7 +224,7 @@ namespace CDASimAdapter{
forward_message( msg , message_receiver_publisher );
}

void CDASimConnection::populate_sensors_with_file(const std::string file_path, Json::Value& sensors_json_v){
void CDASimConnection::populate_sensors_with_file(const std::string& file_path, Json::Value& sensors_json_v){
//Read file from disk
std::ifstream in_strm;
in_strm.open(file_path, std::ifstream::binary);
Expand Down
2 changes: 1 addition & 1 deletion src/v2i-hub/CDASimAdapter/src/include/CDASimConnection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ namespace CDASimAdapter {
* @param file_path A string of file location in the host machine.
* @param sensors_json_v A reference to the location where the sensors inforation is updated and stored.
*/
void populate_sensors_with_file(const std::string file_path, Json::Value& sensors_json_v);
void populate_sensors_with_file(const std::string& file_path, Json::Value& sensors_json_v);
/**
* @brief Read local file that has the sensor information in JSON format from disk. Populate global sensor json variable with the information.
* @param json_str A JSON string.
Expand Down

0 comments on commit f9b2190

Please sign in to comment.