Commit 9344a78b authored by Marcus Nordenberg's avatar Marcus Nordenberg Committed by Marcus Nordenberg

fix IOCRs for profinet configuration

parent 048a0ad9
......@@ -448,8 +448,8 @@ void pack_download_req(T_PNAK_SERVICE_REQ_RES* ServiceReqRes,
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) {
// 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);
} else {
......
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