FreeCalypso > hg > ice1-trau-tester
diff pcm/read_ts.c @ 6:631f2db08538
pcm: implement print-rx and record commands
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 23 Jun 2024 18:53:01 +0000 |
parents | c03ec046471f |
children | ca351324187a |
line wrap: on
line diff
--- a/pcm/read_ts.c Sun Jun 23 18:33:09 2024 +0000 +++ b/pcm/read_ts.c Sun Jun 23 18:53:01 2024 +0000 @@ -14,6 +14,7 @@ #include "globals.h" uint8_t readbuf[160]; +FILE *record_file; int ts_fd_cb(struct osmo_fd *ofd, unsigned int what) { @@ -26,5 +27,7 @@ rc); exit(1); } + if (record_file) + fwrite(readbuf, 1, 160, record_file); return 0; }