[PD-cvs] SF.net SVN: pure-data: [10110] branches/pd-extended/v0-40/externals/hcs/hid

eighthave at users.sourceforge.net eighthave at users.sourceforge.net
Thu Jun 26 18:42:57 CEST 2008


Revision: 10110
          http://pure-data.svn.sourceforge.net/pure-data/?rev=10110&view=rev
Author:   eighthave
Date:     2008-06-26 09:42:56 -0700 (Thu, 26 Jun 2008)

Log Message:
-----------
open message was not updating the device number, so the [info( message gave bad info

Modified Paths:
--------------
    branches/pd-extended/v0-40/externals/hcs/hid/doc/hid-help.pd
    branches/pd-extended/v0-40/externals/hcs/hid/hid.c

Modified: branches/pd-extended/v0-40/externals/hcs/hid/doc/hid-help.pd
===================================================================
--- branches/pd-extended/v0-40/externals/hcs/hid/doc/hid-help.pd	2008-06-26 16:22:29 UTC (rev 10109)
+++ branches/pd-extended/v0-40/externals/hcs/hid/doc/hid-help.pd	2008-06-26 16:42:56 UTC (rev 10110)
@@ -1,4 +1,4 @@
-#N canvas 272 51 715 555 10;
+#N canvas 202 51 715 555 10;
 #X floatatom 27 439 5 0 0 0 - - -;
 #X floatatom 83 439 5 0 0 0 - - -;
 #X floatatom 63 395 6 0 0 0 - - -;
@@ -476,13 +476,13 @@
 #X connect 10 0 8 0;
 #X coords 0 -1 1 1 165 17 1 60 60;
 #X restore 25 134 pd serin;
-#X msg 262 114 open 10;
+#X msg 262 114 open 0;
 #X obj 249 300 pddp/print;
 #N canvas 162 133 570 420 serin 0;
-#X obj 286 61 cnv 15 30 15 empty \$0-open-canvas 10 4 8 0 14 -233017
+#X obj 286 61 cnv 15 30 15 empty \$0-open-canvas 0 4 8 0 14 -233017
 -1 0;
 #X obj 60 61 hradio 15 1 1 15 empty empty empty 0 -6 0 8 -225271 -1
--1 10;
+-1 0;
 #X obj 60 13 inlet;
 #X msg 200 202 label \$1;
 #X obj 200 180 makefilename %d;

Modified: branches/pd-extended/v0-40/externals/hcs/hid/hid.c
===================================================================
--- branches/pd-extended/v0-40/externals/hcs/hid/hid.c	2008-06-26 16:22:29 UTC (rev 10109)
+++ branches/pd-extended/v0-40/externals/hcs/hid/hid.c	2008-06-26 16:42:56 UTC (rev 10110)
@@ -345,7 +345,10 @@
 			if(hid_open_device(x,device_number))
 				error("[hid] can not open device %d",device_number);
 			else
+            {
 				x->x_device_open = 1;
+				x->x_device_number = device_number;
+            }
 		}
 	}
 	else debug_print(LOG_WARNING,"[hid] device does not exist");


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list