Skip to content

Commit 101510e

Browse files
committed
passing settings if specified
1 parent 634cbae commit 101510e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

co_sim_io/impl/connection.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Connection
8484
ctrl_info.Set("identifier", "run_control");
8585

8686
while(true) {
87-
auto info = ImportInfo(ctrl_info);
87+
Info info = ImportInfo(ctrl_info);
8888
const std::string control_signal = info.Get<std::string>("control_signal");
8989
CheckIfNameIsValid(control_signal);
9090
if (control_signal == "exit") {
@@ -100,8 +100,8 @@ class Connection
100100
err_msg << "\n end" << std::endl;
101101
CO_SIM_IO_ERROR << err_msg.str();
102102
}
103-
Info info;
104-
it_fct->second(info);
103+
it_fct->second(info.Get<Info>("settings", Info{})); // pass settings if specified
104+
105105
}
106106
}
107107
return Info(); // TODO use this

0 commit comments

Comments
 (0)