lib/ibutil.c
//line 181
int ibGetDescriptor( ibConf_t p )
{
int retval;
/* XXX should go somewhere else XXX check
validity of values */
if( p.settings.pad > gpib_addr_max ||
p.settings.sad > gpib_addr_max ) // CORRECTED CODE HERE.
{
setIberr( ETAB );
return -1;
}
retval = insert_descriptor( p, -1 );
if( retval < 0 )
return retval;
return retval;
}
when trying to access a device on gpib address #30 you
get Table Error. Was found that gpib_addr_max was being
compared with a >= instead of a > in function
ibGetDescriptor. Changing this fixed this error, but i
don't know if it produces any others.
bryan.thomas@trw.com
Logged In: YES
user_id=129750
Thanks for the bug report/fix.