Commit cddf0a10 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Fixed bug


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@176 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 333490cb
...@@ -336,7 +336,9 @@ int main (int argc, char **argv) { ...@@ -336,7 +336,9 @@ int main (int argc, char **argv) {
} }
} }
#endif #endif
channelListSeq[cur_chan].x_1 = pd->pDataPtr[pd->nSamp-1]; if(pd->nSamp > 0) {
channelListSeq[cur_chan].x_1 = pd->pDataPtr[pd->nSamp-1];
}
#ifdef HAVE___SRC_SEEDLINK_PLUGIN_C #ifdef HAVE___SRC_SEEDLINK_PLUGIN_C
/* Send data to SeedLink Server */ /* Send data to SeedLink Server */
...@@ -512,7 +514,9 @@ int main (int argc, char **argv) { ...@@ -512,7 +514,9 @@ int main (int argc, char **argv) {
} }
} }
#endif #endif
channelListSeq[cur_chan].x_1 = pd->pDataPtr[pd->nSamp-1]; if(pd->nSamp > 0) {
channelListSeq[cur_chan].x_1 = pd->pDataPtr[pd->nSamp-1];
}
#ifdef HAVE___SRC_SEEDLINK_PLUGIN_C #ifdef HAVE___SRC_SEEDLINK_PLUGIN_C
/* Send data to SeedLink Server */ /* Send data to SeedLink Server */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment