]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Sun, 25 Jul 2010 16:41:25 +0000 (16:41 +0000)
committerhadaq <hadaq>
Sun, 25 Jul 2010 16:41:25 +0000 (16:41 +0000)
libtrbnet/trbnet.c

index 552ffe0429594ba6754035aee27dacedf38a86f2..4173d3a9cab3ab5d1209131fa1cba35d750ec830 100644 (file)
@@ -1,4 +1,4 @@
-const char trbnet_version[] = "$Revision: 2.71 $";
+const char trbnet_version[] = "$Revision: 2.72 $";
 
 #include <stdlib.h>
 #include <signal.h>
@@ -442,8 +442,8 @@ static int trb_init_transfer(uint8_t channel)
   read32_from_FPGA(CHANNEL_N_RECEIVER_FIFO_STATUS | ((channel * 2 + 1) << 4),
                    &tmp);
   if ((tmp & MASK_FIFO_EMPTY) == 0) {
-    trb_errno = TRB_FIFO_NOT_EMPTY;
     fifo_flush(channel);
+    trb_errno = TRB_FIFO_NOT_EMPTY;
     return -1;
   }