Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calling of wrong read function #68

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion dtcInterfaceLib/DTC_Registers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8438,7 +8438,7 @@ DTCLib::RegisterFormatter DTCLib::DTC_Registers::FormatTXEventWindowMarkerCountL
std::to_string((GetTXEventWindowMarkerCountLinkRegister(link) -
GetTXEventWindowMarkerCountLinkRegister(DTC_Link_0))/4 );
std::stringstream o;
o << std::dec << ReadTXDataRequestPacketCount(link, form.value);
o << std::dec << ReadTXEventWindowMarkerCountLinkRegister(link, form.value);
form.vals.push_back(o.str());
return form;
} //end FormatTXEventWindowMarkerCountLink()
Expand Down Expand Up @@ -8471,6 +8471,8 @@ DTCLib::DTC_Register DTCLib::DTC_Registers::GetTXEventWindowMarkerCountLinkRegis
break;
default: {
__SS__ << "Illegal link index provided: " << link << __E__;
ss << "\n\nThe stack trace is as follows:\n"
<< otsStyleStackTrace() << __E__;
__SS_THROW__;
}
}
Expand Down Expand Up @@ -8504,6 +8506,8 @@ uint32_t DTCLib::DTC_Registers::ReadTXDataRequestPacketCount(DTC_Link_ID const&
break;
default: {
__SS__ << "Illegal link index provided: " << link << __E__;
ss << "\n\nThe stack trace is as follows:\n"
<< otsStyleStackTrace() << __E__;
__SS_THROW__;
}
}
Expand Down Expand Up @@ -8534,6 +8538,8 @@ void DTCLib::DTC_Registers::ClearTXDataRequetsPacketCount(DTC_Link_ID const& lin
break;
default: {
__SS__ << "Illegal link index provided: " << link << __E__;
ss << "\n\nThe stack trace is as follows:\n"
<< otsStyleStackTrace() << __E__;
__SS_THROW__;
}
}
Expand Down