]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Mon, 7 Sep 2009 22:23:33 +0000 (22:23 +0000)
committerhadaq <hadaq>
Mon, 7 Sep 2009 22:23:33 +0000 (22:23 +0000)
libtrbnet/trbnet.c

index 67b94e5533726bdbbb6b8ef039848a22cdbb3687..357f5ed0e816c3ce0f759a22b943b220c9928b8b 100644 (file)
@@ -1,4 +1,4 @@
-const char trbnet_version[] = "$Revision: 2.41 $";
+const char trbnet_version[] = "$Revision: 2.42 $";
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -221,8 +221,8 @@ static inline void read32_from_FPGA(uint16_t address, uint32_t* value)
   *value = ((readPB() << 16));
   writePC(fifoToggleBit);
 
-  fifoToggleBit ^= FIFO_TOGGLE_BIT;
   *value |= (readPB() & 0xffff);
+  fifoToggleBit ^= FIFO_TOGGLE_BIT;
   writePC(fifoToggleBit);
 }