handle enums as unsigned short

This commit is contained in:
Marty Kraimer
1993-08-11 17:17:02 +00:00
parent da6a32bdf1
commit 1340705456

View File

@@ -397,7 +397,6 @@ static print_returned(type,pbuffer,count)
}
break;
case (DBR_SHORT):
case (DBR_ENUM):
{
short *pvalue = (short *)pbuffer;
for (i = 0; i < count; i++,pvalue++){
@@ -406,6 +405,15 @@ static print_returned(type,pbuffer,count)
}
break;
}
case (DBR_ENUM):
{
unsigned short *pvalue = (unsigned short *)pbuffer;
for (i = 0; i < count; i++,pvalue++){
if(count!=1 && (i%10 == 0)) printf("\n");
printf("%d ",*pvalue);
}
break;
}
case (DBR_FLOAT):
{
float *pvalue = (float *)pbuffer;