Update of /cvsroot/libphidget/libphidget/src/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv15921/examples
Modified Files:
phidget_c.c phidget_cpp.cc
Log Message:
Minor bug fix for interface kit in phidget++
Index: phidget_c.c
===================================================================
RCS file: /cvsroot/libphidget/libphidget/src/examples/phidget_c.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** phidget_c.c 15 Dec 2002 20:40:10 -0000 1.16
--- phidget_c.c 15 Dec 2002 22:55:24 -0000 1.17
***************
*** 200,204 ****
{
printf("Turning output %d on\n",t+1);
! phidgetInterfaceKit488Write(dev,t,1);
sleep(1);
}
--- 200,204 ----
{
printf("Turning output %d on\n",t+1);
! phidgetInterfaceKitWrite(dev,t,1);
sleep(1);
}
***************
*** 206,210 ****
{
printf("Turning output %d off\n",t+1);
! phidgetInterfaceKit488Write(dev,t,0);
}
printf("Finished\n");
--- 206,210 ----
{
printf("Turning output %d off\n",t+1);
! phidgetInterfaceKitWrite(dev,t,0);
}
printf("Finished\n");
Index: phidget_cpp.cc
===================================================================
RCS file: /cvsroot/libphidget/libphidget/src/examples/phidget_cpp.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** phidget_cpp.cc 15 Dec 2002 20:40:11 -0000 1.9
--- phidget_cpp.cc 15 Dec 2002 22:55:24 -0000 1.10
***************
*** 425,436 ****
if (value=="on")
- {
out->value(true);
- }
else
if (value=="off")
- {
out->value(false);
- }
else
throw runtime_error("Invalid state to set output");
--- 425,432 ----
|