@@ -1277,17 +1277,17 @@ void config_init (char *fname, struct audio_s *p_audio_config,
1277
1277
continue ;
1278
1278
}
1279
1279
if (strcasecmp (t ,"AIS" ) == 0 ) {
1280
- n = 12345 ; // See special case later.
1280
+ n = MAX_BAUD - 1 ; // Hack - See special case later.
1281
1281
}
1282
1282
else if (strcasecmp (t ,"EAS" ) == 0 ) {
1283
- n = 23456 ; // See special case later.
1283
+ n = MAX_BAUD - 2 ; // Hack - See special case later.
1284
1284
}
1285
1285
else {
1286
1286
n = atoi (t );
1287
1287
}
1288
1288
if (n >= MIN_BAUD && n <= MAX_BAUD ) {
1289
1289
p_audio_config -> achan [channel ].baud = n ;
1290
- if (n != 300 && n != 1200 && n != 2400 && n != 4800 && n != 9600 && n != 19200 ) {
1290
+ if (n != 300 && n != 1200 && n != 2400 && n != 4800 && n != 9600 && n != 19200 && n != MAX_BAUD - 1 && n != MAX_BAUD - 2 ) {
1291
1291
text_color_set (DW_COLOR_ERROR );
1292
1292
dw_printf ("Line %d: Warning: Non-standard data rate of %d bits per second. Are you sure?\n" , line , n );
1293
1293
}
@@ -1326,12 +1326,12 @@ void config_init (char *fname, struct audio_s *p_audio_config,
1326
1326
p_audio_config -> achan [channel ].mark_freq = 0 ;
1327
1327
p_audio_config -> achan [channel ].space_freq = 0 ;
1328
1328
}
1329
- else if (p_audio_config -> achan [channel ].baud == 12345 ) {
1329
+ else if (p_audio_config -> achan [channel ].baud == MAX_BAUD - 1 ) {
1330
1330
p_audio_config -> achan [channel ].modem_type = MODEM_AIS ;
1331
1331
p_audio_config -> achan [channel ].mark_freq = 0 ;
1332
1332
p_audio_config -> achan [channel ].space_freq = 0 ;
1333
1333
}
1334
- else if (p_audio_config -> achan [channel ].baud == 23456 ) {
1334
+ else if (p_audio_config -> achan [channel ].baud == MAX_BAUD - 2 ) {
1335
1335
p_audio_config -> achan [channel ].modem_type = MODEM_EAS ;
1336
1336
p_audio_config -> achan [channel ].baud = 521 ; // Actually 520.83 but we have an integer field here.
1337
1337
// Will make more precise in afsk demod init.
0 commit comments