From 54b6100378c3cbfc57e6a08fcf2d9d3abcd2d1b3 Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Mon, 30 Jan 2006 16:06:57 +0000 Subject: [PATCH] - I noticed I got the c vs. fortran indexing wrong after explaining it ;-) git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@122 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- start_oss.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start_oss.c b/start_oss.c index 282e16a44..67829c0e2 100644 --- a/start_oss.c +++ b/start_oss.c @@ -228,11 +228,11 @@ oss_loop(int *iarg) /* increment buffer pointers only if data available */ ia=*(data.iwrite); ib=*(data.ibuf); - data.tbuf[ib++] = stime; - if(ib>=FRAMESPERBUFFER) - ib=0; + data.tbuf[ib-1] = stime; /* convert to c index to store */ + if(ib>FRAMESPERBUFFER) + ib=1; *(data.ibuf) = ib; - in = (int16_t *)rcv_buf; // XXX + in = (int16_t *)rcv_buf; /* XXX */ for(i=0; i