Skip to content
Snippets Groups Projects
Commit 51e3e3d0 authored by Pieter Donker's avatar Pieter Donker
Browse files

Task #8701: tested version

parent 5a5ff921
No related branches found
No related tags found
No related merge requests found
......@@ -69,15 +69,14 @@ void BypassWrite::sendrequest()
}
uint16 dst = 0;
if (Cache::getInstance().getBack().getBypassSettings()()(globalBP).isSDOset()) {
Cache::getInstance().getBack().getBypassSettings()()(globalBP).resetSDOset();
dst |= MEPHeader::DST_RSP;
}
if (Cache::getInstance().getBack().getBypassSettings()()(globalBP).isSIset()) {
Cache::getInstance().getBack().getBypassSettings()()(globalBP).resetSIset();
dst |= (1 << getCurrentIndex());
}
if (Cache::getInstance().getBack().getBypassSettings()()(globalBP).isSDOset()) {
Cache::getInstance().getBack().getBypassSettings()()(globalBP).resetSDOset();
dst |= MEPHeader::DST_RSP;
}
request.hdr.set(MEPHeader::DIAG_BYPASS_HDR, dst, MEPHeader::WRITE);
// read values from cache
......@@ -85,7 +84,7 @@ void BypassWrite::sendrequest()
request.bypass = s()(globalBP).getRaw(); // one element
m_hdr = request.hdr;
LOG_DEBUG(formatString("BypassWrite: sendrequest: sending it(%04X)", request.bypass));
LOG_DEBUG(formatString("BypassWrite: sendrequest: sending it(%04X) to (%04x)", request.bypass, dst));
getBoardPort().send(request);
}
......
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