From: hadaq Date: Fri, 25 Oct 2002 06:49:53 +0000 (+0000) Subject: BUGFIX -- mm X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=b95c230d7c26d69f53b32cb2272ec027c43ebdec;p=daqdata.git BUGFIX -- mm --- diff --git a/hadaq/hwship.c b/hadaq/hwship.c index ebb5ab0..7b08995 100644 --- a/hadaq/hwship.c +++ b/hadaq/hwship.c @@ -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) {