]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Tue, 27 Jul 2010 14:07:45 +0000 (14:07 +0000)
committerhadaq <hadaq>
Tue, 27 Jul 2010 14:07:45 +0000 (14:07 +0000)
libtrbnet/trbnet.c

index eca0a7e74e78b34e090cbab15befa7cf8c6d8929..8933c87581459be67f9472e65208777b299388c4 100644 (file)
@@ -1,4 +1,4 @@
-const char trbnet_version[] = "$Revision: 2.73 $";
+const char trbnet_version[] = "$Revision: 2.74 $";
 
 #include <stdlib.h>
 #include <signal.h>
@@ -1686,13 +1686,14 @@ int network_reset()
   
   if (lockPorts(1) == -1) return -1;
 
+  com_reset();
+  usleep(1000);
+
   /* DEBUG INFO */
   if (trb_debug > 0) {
     fprintf(stderr, "network_reset started.\n");
   }
 
-  com_reset();
-
   write32_to_FPGA(0x10, 0x0000);  
   usleep(1000);
   write32_to_FPGA(0x10, 0x8000);