Commit a929031e authored by Claes Sjofors's avatar Claes Sjofors

IO, max limit for number of channels for a card removed fix

parent acf002d4
......@@ -1737,7 +1737,10 @@ static pwr_tStatus io_init_card(
case pwr_cClass_ChanIi:
case pwr_cClass_ChanIo:
case pwr_cClass_ChanCo:
maxchan++;
if ( bd[i].attr->Param.Info.Elements <= 1)
maxchan++;
else
maxchan += bd[i].attr->Param.Info.Elements;
break;
default:
if ( bd[i].attr->Param.Info.Flags & PWR_MASK_CLASS) {
......@@ -1756,7 +1759,10 @@ static pwr_tStatus io_init_card(
case pwr_cClass_ChanIi:
case pwr_cClass_ChanIo:
case pwr_cClass_ChanCo:
maxchan++;
if ( bd2[ii].attr->Param.Info.Elements <= 1)
maxchan++;
else
maxchan += bd2[ii].attr->Param.Info.Elements;
break;
default: ;
}
......
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