[Libphidget-cvs-commits] CVS: libphidget/src/libphidget phidget.c,1.29,1.30
Status: Alpha
Brought to you by:
jstrohm
From: Jack S. <js...@us...> - 2003-06-24 02:12:16
|
Update of /cvsroot/libphidget/libphidget/src/libphidget In directory sc8-pr-cvs1:/tmp/cvs-serv16539/src/libphidget Modified Files: phidget.c Log Message: Removed debugging statements and various cleanups Index: phidget.c =================================================================== RCS file: /cvsroot/libphidget/libphidget/src/libphidget/phidget.c,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** phidget.c 23 Jun 2003 22:47:02 -0000 1.29 --- phidget.c 24 Jun 2003 02:12:13 -0000 1.30 *************** *** 22,27 **** // TODO - change this ! #define DBG(a) printf("*** DEBUG *** : %s\n",a) ! //#define DBG(a) int _libPhidgetInitialized = 0; /**< Private variable to determine if the libphidget is initialized */ --- 22,27 ---- // TODO - change this ! //#define DBG(a) printf("*** DEBUG *** : %s\n",a) ! #define DBG(a) int _libPhidgetInitialized = 0; /**< Private variable to determine if the libphidget is initialized */ *************** *** 549,554 **** j++; - printf("Serial:[%s]\n",serial); - usb_release_interface(handle, 0); usb_close(handle); --- 549,552 ---- *************** *** 700,707 **** DBG(" softphidget found"); - //printf("Bus:0x0%x Dev:0x0%x\n",bus,dev); _getSoftPhidgetInfo(&Version,&SerialNumber,&productID,handle); ! printf("Version:%d Serial:%d ProductID:0x0%x\n",Version,SerialNumber,productID); //_addNewSerial(bus,dev,SerialNumber); --- 698,704 ---- DBG(" softphidget found"); _getSoftPhidgetInfo(&Version,&SerialNumber,&productID,handle); ! //printf("Version:%d Serial:%d ProductID:0x0%x\n",Version,SerialNumber,productID); //_addNewSerial(bus,dev,SerialNumber); *************** *** 823,827 **** if (wasFound==0) { - printf("Bus:0x0%x Dev:0x0%x\n",bus,dev); if (_isSoftPhidget(pdt)) { --- 820,823 ---- *************** *** 838,843 **** serial=_getSerial(dev,pdt); } - - printf(" Serial:%d\n",serial); // have we seen this phidget before --- 834,837 ---- |