Skip to content
Snippets Groups Projects
Unverified Commit 1ab5def4 authored by Jens Georg's avatar Jens Georg Committed by GitHub
Browse files

fix: Escape device name in initialisation handler (#335)

If a device was only defined by CDD and the CDD contained some sort of
hierarchy separator, the unescaped CDD was causing an invalid variable
name.
parent 5bd831da
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ namespace ChimeraTK {
unsigned int _errorGracePeriod; // additional sleep time before a retry after an error
//_scriptOutput must be in this file after _outputName so the latter can be used as constructor parameter
ScalarOutput<std::string> _scriptOutput{
this, RegisterPath("/Devices") / _deviceAlias / _outputName, "", "stdout+stderr of init script"};
this, RegisterPath("/Devices") / Utilities::escapeName(_deviceAlias, false) / _outputName, "", "stdout+stderr of init script"};
};
} // namespace ChimeraTK
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment