From 3941fb3ead2756911c3dc0f6705504b282331082 Mon Sep 17 00:00:00 2001 From: John Winans Date: Fri, 6 Jan 1995 17:03:43 +0000 Subject: [PATCH] Added some ifdef'd out test code to see if the end of the sequence program could be updated to NOT cause an extra sample from port zero to be taken at the end of the sequence. As it turns out, it causes more harm than good. There must be something wrong with my understanding on how it works. For now, the misfeature of the extra sample at the end of the sequence will have to stay. --- src/drv/drvDvx.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/drv/drvDvx.c b/src/drv/drvDvx.c index 99c8f6715..5fc238bfb 100644 --- a/src/drv/drvDvx.c +++ b/src/drv/drvDvx.c @@ -120,6 +120,9 @@ * BUGS: * The driver should inspect the VXI make and model codes and use a data type * for the DMA buffer that is appropriate. + * + * $Log$ + * */ static char *SccsId = "$Id$"; @@ -884,14 +887,13 @@ int sramld(int card) if (dvxDebug) printf("Total channels read in %d\n", dvx[card].numChan); -#if 0 /* Force the user to reference board 7 on their own */ - /* Make the extender system reset by referencing board 7 (No sample taken) */ - *ramptr++ = GAIN_CHANNEL | ((0xF0 >> 3) & 3); - *ramptr++ = (((0xF0 & 7) << 3) | ((0xF0 & 0xE0) >> 5)); -#endif - +#if 1 /* This causes an extra sample to be taken at the end of the scan */ *ramptr++ = 0; /* mark the end of the sequence program */ *ramptr++ = 0; +#else /* This was supposed to get rid of the extra one, but does not work */ + *(ramptr-1) &= 0xff3f; + *ramptr = *(ramptr-1); +#endif /* set scan rate and run it once */ dvx[card].pdvx2502->samp_rate = DVX_DRATE;