Commit 7ab14000 authored by Robert Karlsson's avatar Robert Karlsson

Init of clean io data areas when config wrong

parent cfd57d5c
......@@ -295,6 +295,11 @@ static pwr_tStatus IoAgentInit (
}
} else {
errh_Error( "Download of Profinet Device configuration failed for: %s", device_vect[ii]->device_name);
/* Setup a dummy i/o area. Depending on exisiting channels this area needs to exist */
for (jj = 0; jj < local->device_data[ii]->iocr_data.size(); jj++) {
local->device_data[ii]->iocr_data[jj]->clean_io_data = (unsigned char *) calloc(1, PROFINET_IO_DATA_MAX_LENGTH);
}
}
}
}
......
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