Commit 8dca0eaa authored by Marcus Nordenberg's avatar Marcus Nordenberg

profinet: skip configuration for subslot 0x8000

parent 7785c4c6
......@@ -445,9 +445,23 @@ void pack_download_req(T_PNAK_SERVICE_REQ_RES* ServiceReqRes,
break;
}
// printf("Number of modules for this slave: %d\n", num_modules);
// num_modules = dev_data->slot_data.size();
// 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)
{
delete *it;
it = dev_data->slot_data[ii]->subslot_data.erase(it);
}
else
{
it++;
}
}
}
/* Calculate num apis */
......
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