Commit 122962b4 authored by Claes Sjofors's avatar Claes Sjofors

IO Buffer input and Buffer output signals/channels

parent e51d5a81
...@@ -151,12 +151,6 @@ wb_adrep *wb_bdrep::adrep( pwr_tStatus *sts, const char *aname) ...@@ -151,12 +151,6 @@ wb_adrep *wb_bdrep::adrep( pwr_tStatus *sts, const char *aname)
bool next_attr = false; bool next_attr = false;
wb_name an(n.attribute(i)); wb_name an(n.attribute(i));
wb_orep *orep = bd->m_orep->vrep()->child( sts, bd->m_orep, an); wb_orep *orep = bd->m_orep->vrep()->child( sts, bd->m_orep, an);
#if 0
if ( EVEN(*sts) && i > 0) {
*sts = LDH__ATTRINDEX;
return 0;
}
#endif
while ( EVEN(*sts)) { while ( EVEN(*sts)) {
// Try Super attribute // Try Super attribute
orep = bd->m_orep->vrep()->first( sts, bd->m_orep); orep = bd->m_orep->vrep()->first( sts, bd->m_orep);
...@@ -233,6 +227,12 @@ wb_adrep *wb_bdrep::adrep( pwr_tStatus *sts, const char *aname) ...@@ -233,6 +227,12 @@ wb_adrep *wb_bdrep::adrep( pwr_tStatus *sts, const char *aname)
delete cd; delete cd;
} }
else if ( (i != n.attributes() - 1) && !adrep->isClass()) {
// To many attribute
delete adrep;
*sts = LDH__NOSUCHATTR;
return 0;
}
} }
......
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