From fed186a49fc8f27a8a31fd40f8c8b26d32a4b932 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 15 Mar 2020 14:47:25 +0100 Subject: Add end-to-end simulation --- controller/fw/tools/dsss_demod_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controller/fw/tools/dsss_demod_test.c') diff --git a/controller/fw/tools/dsss_demod_test.c b/controller/fw/tools/dsss_demod_test.c index 64fd889..7a4ca71 100644 --- a/controller/fw/tools/dsss_demod_test.c +++ b/controller/fw/tools/dsss_demod_test.c @@ -70,7 +70,7 @@ int main(int argc, char **argv) { fprintf(stderr, "Reading %zd samples test data...", st.st_size/sizeof(float)); ssize_t nread = 0; while (nread < st.st_size) { - ssize_t rc = read(fd, buf, st.st_size - nread); + ssize_t rc = read(fd, buf + nread, st.st_size - nread); if (rc == -EINTR || rc == -EAGAIN) continue; -- cgit