Skip to content

Commit

Permalink
Merge pull request #25 from Mu2e/eric/debug
Browse files Browse the repository at this point in the history
Eric fixed bug
  • Loading branch information
gianipez authored Mar 22, 2024
2 parents 2dcbb50 + 6703a1b commit 99d6f3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artdaq-core-mu2e/Overlays/DTC_Packets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ std::string DTCLib::DTC_DMAPacket::headerJSON() const
ss << "\t\"isValid\": " << valid_ << ",\n";
ss << "\t\"subsystemID\": " << std::hex << "0x" << static_cast<int>(subsystemID_) << ",\n";
ss << "\t\"linkID\": " << std::dec << linkID_ << ",\n";
ss << "\t\"packetType\": " << packetType_ << ",\n";
ss << "\t\"packetType\": " << static_cast<int>(packetType_)<< ",\n";
ss << "\t\"hopCount\": " << std::hex << "0x" << static_cast<int>(hopCount_);

return ss.str();
Expand Down Expand Up @@ -922,6 +922,7 @@ void DTCLib::DTC_Event::SetupEvent()
try
{
sub_events_.emplace_back(ptr);
sub_events_.back().SetupSubEvent();
byte_count += sub_events_.back().GetSubEventByteCount();
if(sub_events_.back().GetSubEventByteCount() == 0)
{
Expand Down

0 comments on commit 99d6f3e

Please sign in to comment.