From: drowe67 Date: Fri, 23 Mar 2018 20:38:19 +0000 (+0000) Subject: un fix off by one bug - fix applied to tofdm.c instead to make identical X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=b248697a9a752ee908b5c20b0b055c837deb78cb;p=freetel-svn-tracking.git un fix off by one bug - fix applied to tofdm.c instead to make identical git-svn-id: https://svn.code.sf.net/p/freetel/code@3426 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/octave/sample_clock_offset.m b/codec2-dev/octave/sample_clock_offset.m index 098c85e4..51691782 100644 --- a/codec2-dev/octave/sample_clock_offset.m +++ b/codec2-dev/octave/sample_clock_offset.m @@ -9,7 +9,7 @@ function rx = sample_clock_offset(tx, sample_clock_offset_ppm) tin=1; tout=1; rx = zeros(1,length(tx)); - while tin <= length(tx) + while tin < length(tx) t1 = floor(tin); t2 = ceil(tin); f = tin - t1;