@@ -71,7 +71,7 @@ static uint32_t ms_timestr2btime (const char *timestr, uint8_t *btime, char *sid
7171 *
7272 * The following data encodings and expected @ref MS3Record.sampletype
7373 * are supported:
74- * - ::DE_TEXT (0), Text, expects type \c 'a '
74+ * - ::DE_TEXT (0), Text, expects type \c 't '
7575 * - ::DE_INT16 (1), 16-bit integer, expects type \c 'i'
7676 * - ::DE_INT32 (3), 32-bit integer, expects type \c 'i'
7777 * - ::DE_FLOAT32 (4), 32-bit float (IEEE), expects type \c 'f'
@@ -229,7 +229,7 @@ msr3_pack_mseed3 (MS3Record *msr, void (*record_handler) (char *, int, void *),
229229 /* Short cut: if there are no samples, record packing is complete */
230230 if (msr -> numsamples <= 0 )
231231 {
232- /* Set encoding to ASCII for consistency and to reduce expectations */
232+ /* Set encoding to text for consistency and to reduce expectations */
233233 * pMS3FSDH_ENCODING (rawrec ) = DE_TEXT ;
234234
235235 /* Calculate CRC (with CRC field set to 0) and set */
@@ -662,7 +662,7 @@ msr3_pack_mseed2 (MS3Record *msr, void (*record_handler) (char *, int, void *),
662662 /* Short cut: if there are no samples, record packing is complete */
663663 if (msr -> numsamples <= 0 )
664664 {
665- /* Set encoding to ASCII for consistency and to reduce expectations */
665+ /* Set encoding to text for consistency and to reduce expectations */
666666 * pMS2B1000_ENCODING (rawrec + 48 ) = DE_TEXT ;
667667
668668 /* Set empty part of record to zeros */
@@ -1580,15 +1580,15 @@ msr_pack_data (void *dest, void *src, int maxsamples, int maxdatabytes,
15801580 switch (encoding )
15811581 {
15821582 case DE_TEXT :
1583- if (sampletype != 'a' )
1583+ if (sampletype != 't' && sampletype != ' a' )
15841584 {
1585- ms_log (2 , "%s: Sample type must be ascii (a ) for ASCII text encoding not '%c'\n" ,
1585+ ms_log (2 , "%s: Sample type must be text (t ) for text encoding not '%c'\n" ,
15861586 sid , sampletype );
15871587 return -1 ;
15881588 }
15891589
15901590 if (verbose > 1 )
1591- ms_log (0 , "%s: Packing ASCII data\n" , sid );
1591+ ms_log (0 , "%s: Packing text data\n" , sid );
15921592
15931593 nsamples = msr_encode_text ((char * )src , maxsamples , (char * )dest , maxdatabytes );
15941594
0 commit comments