[Libphidget-cvs-commits] CVS: libphidget/src/examples phidget_c.c,1.8,1.9
Status: Alpha
Brought to you by:
jstrohm
From: Jack S. <js...@us...> - 2002-12-13 21:16:27
|
Update of /cvsroot/libphidget/libphidget/src/examples In directory sc8-pr-cvs1:/tmp/cvs-serv21336/examples Modified Files: phidget_c.c Log Message: hopefully added the reading of interface kit 880 and fixed a bug in the phidgetRead function Index: phidget_c.c =================================================================== RCS file: /cvsroot/libphidget/libphidget/src/examples/phidget_c.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** phidget_c.c 13 Dec 2002 20:45:13 -0000 1.8 --- phidget_c.c 13 Dec 2002 21:16:22 -0000 1.9 *************** *** 98,104 **** while(1) { ! float analog[4]; int digital[8]; ! phidgetInterfaceKit488Read(dev,analog,digital); printf("%c%c%c%c%c%c%c%c %8f %8f %8f %8f\n", --- 98,108 ---- while(1) { ! float analog[8]; int digital[8]; ! if (phidgetInterfaceKit488Read(dev,analog,digital)<0) ! { ! printf("error - %s\n",phidgetErrorString(phidgetLastError())); ! return(-1); ! } printf("%c%c%c%c%c%c%c%c %8f %8f %8f %8f\n", |