Skip to content
Snippets Groups Projects
Commit 20d5b50e authored by vargheseg's avatar vargheseg
Browse files

default dmsg_info.ident when no macropulse source

dmsg_info.ident is set to 0 when DoocsProcessArray and
DoocsProcessScalar do not have a macropulse source defined.  This is
what the other supported types do currently; behavior should be
consistent between the types with this commit.

Revert this if it is not the intended behavior.
parent 8f0cf28e
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,12 @@ namespace ChimeraTK {
memset(&info, 0, sizeof(info));
info.sec = seconds;
info.usec = microseconds;
info.ident = _macroPulseNumberSource->accessData(0);
if(_macroPulseNumberSource != nullptr) {
info.ident = _macroPulseNumberSource->accessData(0);
}
else {
info.ident = 0;
}
auto ret = this->send(&info);
if(ret) {
std::cout << "ZeroMQ sending failed!!!" << std::endl;
......
......@@ -103,7 +103,12 @@ namespace ChimeraTK {
memset(&info, 0, sizeof(info));
info.sec = seconds;
info.usec = microseconds;
info.ident = _macroPulseNumberSource->accessData(0);
if(_macroPulseNumberSource != nullptr) {
info.ident = _macroPulseNumberSource->accessData(0);
}
else {
info.ident = 0;
}
auto ret = this->send(&info);
if(ret) {
std::cout << "ZeroMQ sending failed!!!" << std::endl;
......
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