diff --git a/src/util/ca_test.c b/src/util/ca_test.c index b57ea9738..f938b96a6 100644 --- a/src/util/ca_test.c +++ b/src/util/ca_test.c @@ -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;