Commit 655f779b authored by Marcus Nordenberg's avatar Marcus Nordenberg Committed by Claes Sjöfors

fix IOCRs for profinet configuration

parent af880704
......@@ -446,15 +446,12 @@ void pack_download_req(T_PNAK_SERVICE_REQ_RES* ServiceReqRes,
}
// Ignore Interface subslots as they break the device configuration
for (ii = 0; ii < num_modules; ii++)
{
for (std::vector<GsdmlSubslotData*>::iterator it =
dev_data->slot_data[ii]->subslot_data.begin();
it != dev_data->slot_data[ii]->subslot_data.end();)
{
// The interface submodule is always 32768 according to the standard
if ((*it)->subslot_number == 32768)
{
for (ii = 0; ii < num_modules; ii++) {
for (std::vector<GsdmlSubslotData*>::iterator it
= dev_data->slot_data[ii]->subslot_data.begin();
it != dev_data->slot_data[ii]->subslot_data.end();) {
// Don't add expectedsubmoduleblock if there's no IOCR
if ((*it)->data_record.empty() && ((*it)->io_input_length == 0 && (*it)->io_output_length == 0)) {
delete *it;
it = dev_data->slot_data[ii]->subslot_data.erase(it);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment