Commit c2446d48 authored by claes's avatar claes

Channels as attributeobjects

parent f219e679
...@@ -76,7 +76,7 @@ static pwr_tStatus AiRangeToCoef( ...@@ -76,7 +76,7 @@ static pwr_tStatus AiRangeToCoef(
} }
else else
{ {
sts = gdh_ObjidToName( chanp->ChanObjid, buf, sizeof(buf), sts = gdh_ObjidToName( chanp->ChanAref.Objid, buf, sizeof(buf),
cdh_mName_volumeStrict); cdh_mName_volumeStrict);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
errh_Error( "Invalid SigValueRange in Ai channel %s", buf); errh_Error( "Invalid SigValueRange in Ai channel %s", buf);
......
...@@ -78,7 +78,7 @@ static pwr_tStatus AiRangeToCoef( ...@@ -78,7 +78,7 @@ static pwr_tStatus AiRangeToCoef(
} }
else else
{ {
sts = gdh_ObjidToName( chanp->ChanObjid, buf, sizeof(buf), sts = gdh_ObjidToName( chanp->ChanAref.Objid, buf, sizeof(buf),
cdh_mName_volumeStrict); cdh_mName_volumeStrict);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
errh_Error( "Invalid SigValueRange in Ai channel %s", buf); errh_Error( "Invalid SigValueRange in Ai channel %s", buf);
......
...@@ -69,7 +69,7 @@ static pwr_tStatus AoRangeToCoef( ...@@ -69,7 +69,7 @@ static pwr_tStatus AoRangeToCoef(
} }
else else
{ {
sts = gdh_ObjidToName( chanp->ChanObjid, buf, sizeof(buf), sts = gdh_ObjidToName( chanp->ChanAref.Objid, buf, sizeof(buf),
cdh_mName_volumeStrict); cdh_mName_volumeStrict);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
errh_Error( "Invalid ActValueRange in Ao channel %s", buf); errh_Error( "Invalid ActValueRange in Ao channel %s", buf);
...@@ -86,7 +86,7 @@ static pwr_tStatus AoRangeToCoef( ...@@ -86,7 +86,7 @@ static pwr_tStatus AoRangeToCoef(
} }
else else
{ {
sts = gdh_ObjidToName( chanp->ChanObjid, buf, sizeof(buf), sts = gdh_ObjidToName( chanp->ChanAref.Objid, buf, sizeof(buf),
cdh_mName_volumeStrict); cdh_mName_volumeStrict);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
errh_Error( "Invalid SigValueRange in Ao channel %s", buf); errh_Error( "Invalid SigValueRange in Ao channel %s", buf);
......
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