Update of /cvsroot/playerstage/code/player/server/drivers/mixed/phidgetIFK
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10946/server/drivers/mixed/phidgetIFK

Modified Files:
        phidgetIFK.cc 
Log Message:
applied Toby's patch to replace fixed-size arrays

Index: phidgetIFK.cc
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/server/drivers/mixed/phidgetIFK/phidgetIFK.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** phidgetIFK.cc       18 Oct 2007 21:47:59 -0000      1.3
--- phidgetIFK.cc       1 Nov 2007 22:16:21 -0000       1.4
***************
*** 502,505 ****
--- 502,506 ----
  
          data_ai.voltages_count=numsensors;
+         data_ai.voltages = new double[numsensors];
  
          for (int i=0; i!=numsensors; ++i) {
***************
*** 544,548 ****
              Publish(aio_id, PLAYER_MSGTYPE_DATA, PLAYER_AIO_DATA_STATE, 
(unsigned char*)&data_ai, sizeof(player_aio_data_t), NULL);
          }
! 
          if (dio_id.interf != 0) {
              Publish(dio_id, PLAYER_MSGTYPE_DATA, PLAYER_DIO_DATA_VALUES, 
(unsigned char*)&data_di, sizeof(player_dio_data_t), NULL);
--- 545,550 ----
              Publish(aio_id, PLAYER_MSGTYPE_DATA, PLAYER_AIO_DATA_STATE, 
(unsigned char*)&data_ai, sizeof(player_aio_data_t), NULL);
          }
!         delete [] data_ai.voltages;
!         
          if (dio_id.interf != 0) {
              Publish(dio_id, PLAYER_MSGTYPE_DATA, PLAYER_DIO_DATA_VALUES, 
(unsigned char*)&data_di, sizeof(player_dio_data_t), NULL);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to