Commit a4633d00 authored by Robert Karlsson's avatar Robert Karlsson

Small changes to Profinet

parent 00a953fa
...@@ -292,7 +292,7 @@ static pwr_tStatus IoAgentInit ( ...@@ -292,7 +292,7 @@ static pwr_tStatus IoAgentInit (
} }
else if (local->device_data[ii + 1]->iocr_data[jj]->type == PROFINET_IO_CR_TYPE_OUTPUT) { else if (local->device_data[ii + 1]->iocr_data[jj]->type == PROFINET_IO_CR_TYPE_OUTPUT) {
r_local->bytes_of_output = local->device_data[ii + 1]->iocr_data[jj]->clean_io_data_length; r_local->bytes_of_output = local->device_data[ii + 1]->iocr_data[jj]->clean_io_data_length;
r_local->inputs = local->device_data[ii + 1]->iocr_data[jj]->clean_io_data; r_local->outputs = local->device_data[ii + 1]->iocr_data[jj]->clean_io_data;
} }
} }
} }
......
...@@ -239,7 +239,7 @@ static pwr_tStatus IoRackRead ( ...@@ -239,7 +239,7 @@ static pwr_tStatus IoRackRead (
/* The reading of the process image is now performed at the agent level, /* The reading of the process image is now performed at the agent level,
this eliminates the need for board specific code at the rack level. */ this eliminates the need for board specific code at the rack level. */
if (sp->Status == PB__SUCCESS) { if (sp->Status == PB__NORMAL) {
sp->ErrorCount = 0; sp->ErrorCount = 0;
} }
else { else {
......
This diff is collapsed.
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