diff --git a/lib/include/srslte/phy/io/format.h b/lib/include/srslte/phy/io/format.h index df24df4a7..e273e31e7 100644 --- a/lib/include/srslte/phy/io/format.h +++ b/lib/include/srslte/phy/io/format.h @@ -22,7 +22,8 @@ #ifndef SRSLTE_FORMAT_H #define SRSLTE_FORMAT_H -typedef enum { +typedef enum { + SRSLTE_TEXT, SRSLTE_FLOAT, SRSLTE_COMPLEX_FLOAT, SRSLTE_COMPLEX_SHORT, diff --git a/lib/src/phy/io/filesink.c b/lib/src/phy/io/filesink.c index 3b2bfd2f4..27458941d 100644 --- a/lib/src/phy/io/filesink.c +++ b/lib/src/phy/io/filesink.c @@ -53,6 +53,9 @@ int srslte_filesink_write(srslte_filesink_t *q, void *buffer, int nsamples) { int size; switch(q->type) { + case SRSLTE_TEXT: + fprintf(q->f, "%s",(char *)buffer); + break; case SRSLTE_FLOAT: for (i=0;if,"%g\n",fbuf[i]);