]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
BUGFIX -- mm
authorhadaq <hadaq>
Fri, 25 Oct 2002 06:49:53 +0000 (06:49 +0000)
committerhadaq <hadaq>
Fri, 25 Oct 2002 06:49:53 +0000 (06:49 +0000)
hadaq/hwship.c

index ebb5ab01526e7537903c205d3a6e26f5fc039508..7b0899534e2bf4deb3a3457b9c36e96f8fe8c632 100644 (file)
@@ -1,4 +1,4 @@
-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/Attic/hwship.c,v 6.28 2002-10-24 08:25:34 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/Attic/hwship.c,v 6.29 2002-10-25 06:49:53 hadaq Exp $";
 
 #undef SHIP_DEBUG
 
@@ -128,7 +128,9 @@ void HwShip_getEndOfData(HwShip *my)
 {
        void toDbgBuf(HwShip *my);
        my->endOfData = LVme_getL(my->lvme, LVL2_OFFSET) - 2 + LVL2_OFFSET;
+#ifdef SHIP_DEBUG
        toDbgBuf(my);
+#endif
 }
 
 #define SHIP_NODATASIZE 0x10
@@ -145,7 +147,7 @@ int HwShip_readSubEvt(HwShip *my, void *subEvt)
        size = LVme_getL(my->lvme, my->currAddr);
        lastAddr = my->currAddr + size;
 
-#ifdef SHIP_DEBUG
+#ifndef SHIP_DEBUG
        assert(size < sizeof(uint32_t) * 0x1600);       /* whereever the 0x1600 comes from */
 #else
        if (my->isDoomed) {