Commit 48b6cf75 authored by claes's avatar claes

Special profibus thread in plc

parent 702bf552
......@@ -1723,7 +1723,9 @@ static pwr_tStatus io_init_agent(
{
if ( EVEN(sts))
process = io_mProcess_All;
if ( process & io_mProcess_Plc)
if ( ctx->Process == io_mProcess_Profibus)
ok = 1;
else if ( process & io_mProcess_Plc)
{
/* Check thread also */
strcpy( attrname, aname);
......
......@@ -97,7 +97,8 @@ typedef enum {
io_mProcess_None = 0,
io_mProcess_Plc = 1 << 0,
io_mProcess_IoComm = 1 << 1,
io_mProcess_User = 1 << 2,
io_mProcess_Profibus = 1 << 2,
io_mProcess_User = 1 << 3,
io_mProcess_All = ~0
} io_mProcess;
......
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