@@ -2165,6 +2165,9 @@ void config_init (char *fname, struct audio_s *p_audio_config,
2165
2165
2166
2166
/*
2167
2167
* DWAIT n - Extra delay for receiver squelch. n = 10 mS units.
2168
+ *
2169
+ * Why did I do this? Just add more to TXDELAY.
2170
+ * Now undocumented in User Guide. Might disappear someday.
2168
2171
*/
2169
2172
2170
2173
else if (strcasecmp (t , "DWAIT" ) == 0 ) {
@@ -2200,14 +2203,20 @@ void config_init (char *fname, struct audio_s *p_audio_config,
2200
2203
continue ;
2201
2204
}
2202
2205
n = atoi (t );
2203
- if (n >= 0 && n <= 255 ) {
2206
+ if (n >= 5 && n < 50 ) {
2207
+ // 0 = User has no clue. This would be no delay.
2208
+ // 10 = Default.
2209
+ // 50 = Half second. User might think it is mSec and use 100.
2204
2210
p_audio_config -> achan [channel ].slottime = n ;
2205
2211
}
2206
2212
else {
2207
2213
p_audio_config -> achan [channel ].slottime = DEFAULT_SLOTTIME ;
2208
2214
text_color_set (DW_COLOR_ERROR );
2209
- dw_printf ("Line %d: Invalid delay time for persist algorithm. Using default %d.\n" ,
2215
+ dw_printf ("Line %d: Invalid delay time for persist algorithm. Using default %d.\n" ,
2210
2216
line , p_audio_config -> achan [channel ].slottime );
2217
+ dw_printf ("Read the Dire Wolf User Guide, \"Radio Channel - Transmit Timing\"\n" );
2218
+ dw_printf ("section, to understand what this means.\n" );
2219
+ dw_printf ("Why don't you just use the default?\n" );
2211
2220
}
2212
2221
}
2213
2222
@@ -2224,14 +2233,17 @@ void config_init (char *fname, struct audio_s *p_audio_config,
2224
2233
continue ;
2225
2234
}
2226
2235
n = atoi (t );
2227
- if (n >= 0 && n <= 255 ) {
2236
+ if (n >= 5 && n <= 250 ) {
2228
2237
p_audio_config -> achan [channel ].persist = n ;
2229
2238
}
2230
2239
else {
2231
2240
p_audio_config -> achan [channel ].persist = DEFAULT_PERSIST ;
2232
2241
text_color_set (DW_COLOR_ERROR );
2233
- dw_printf ("Line %d: Invalid probability for persist algorithm. Using default %d.\n" ,
2242
+ dw_printf ("Line %d: Invalid probability for persist algorithm. Using default %d.\n" ,
2234
2243
line , p_audio_config -> achan [channel ].persist );
2244
+ dw_printf ("Read the Dire Wolf User Guide, \"Radio Channel - Transmit Timing\"\n" );
2245
+ dw_printf ("section, to understand what this means.\n" );
2246
+ dw_printf ("Why don't you just use the default?\n" );
2235
2247
}
2236
2248
}
2237
2249
@@ -2250,17 +2262,21 @@ void config_init (char *fname, struct audio_s *p_audio_config,
2250
2262
n = atoi (t );
2251
2263
if (n >= 0 && n <= 255 ) {
2252
2264
text_color_set (DW_COLOR_ERROR );
2253
- if (n == 0 ) {
2254
- dw_printf ("Line %d: Setting TXDELAY to 0 is a REALLY BAD idea if you want other stations to hear you.\n" ,
2255
- line );
2256
- dw_printf ("Line %d: See User Guide, \"Radio Channel - Transmit Timing\" for an explanation.\n" ,
2265
+ if (n < 10 ) {
2266
+ dw_printf ("Line %d: Setting TXDELAY this small is a REALLY BAD idea if you want other stations to hear you.\n" ,
2257
2267
line );
2268
+ dw_printf ("Read the Dire Wolf User Guide, \"Radio Channel - Transmit Timing\"\n" );
2269
+ dw_printf ("section, to understand what this means.\n" );
2270
+ dw_printf ("Why don't you just use the default rather than reducing reliability?\n" );
2258
2271
}
2259
- if (n >= 100 ) {
2272
+ else if (n >= 100 ) {
2260
2273
dw_printf ("Line %d: Keeping with tradition, going back to the 1980s, TXDELAY is in 10 millisecond units.\n" ,
2261
2274
line );
2262
2275
dw_printf ("Line %d: The value %d would be %.3f seconds which seems rather excessive. Are you sure you want that?\n" ,
2263
2276
line , n , (double )n * 10. / 1000. );
2277
+ dw_printf ("Read the Dire Wolf User Guide, \"Radio Channel - Transmit Timing\"\n" );
2278
+ dw_printf ("section, to understand what this means.\n" );
2279
+ dw_printf ("Why don't you just use the default?\n" );
2264
2280
}
2265
2281
p_audio_config -> achan [channel ].txdelay = n ;
2266
2282
}
@@ -2286,24 +2302,28 @@ void config_init (char *fname, struct audio_s *p_audio_config,
2286
2302
}
2287
2303
n = atoi (t );
2288
2304
if (n >= 0 && n <= 255 ) {
2289
- if (n == 0 ) {
2290
- dw_printf ("Line %d: Setting TXTAIL to 0 is a REALLY BAD idea if you want other stations to hear you.\n" ,
2291
- line );
2292
- dw_printf ("Line %d: See User Guide, \"Radio Channel - Transmit Timing\" for an explanation.\n" ,
2305
+ if (n < 5 ) {
2306
+ dw_printf ("Line %d: Setting TXTAIL that small is a REALLY BAD idea if you want other stations to hear you.\n" ,
2293
2307
line );
2308
+ dw_printf ("Read the Dire Wolf User Guide, \"Radio Channel - Transmit Timing\"\n" );
2309
+ dw_printf ("section, to understand what this means.\n" );
2310
+ dw_printf ("Why don't you just use the default rather than reducing reliability?\n" );
2294
2311
}
2295
- if (n >= 50 ) {
2312
+ else if (n >= 50 ) {
2296
2313
dw_printf ("Line %d: Keeping with tradition, going back to the 1980s, TXTAIL is in 10 millisecond units.\n" ,
2297
2314
line );
2298
2315
dw_printf ("Line %d: The value %d would be %.3f seconds which seems rather excessive. Are you sure you want that?\n" ,
2299
2316
line , n , (double )n * 10. / 1000. );
2317
+ dw_printf ("Read the Dire Wolf User Guide, \"Radio Channel - Transmit Timing\"\n" );
2318
+ dw_printf ("section, to understand what this means.\n" );
2319
+ dw_printf ("Why don't you just use the default?\n" );
2300
2320
}
2301
2321
p_audio_config -> achan [channel ].txtail = n ;
2302
2322
}
2303
2323
else {
2304
2324
p_audio_config -> achan [channel ].txtail = DEFAULT_TXTAIL ;
2305
2325
text_color_set (DW_COLOR_ERROR );
2306
- dw_printf ("Line %d: Invalid time for transmit timing. Using %d.\n" ,
2326
+ dw_printf ("Line %d: Invalid time for transmit timing. Using %d.\n" ,
2307
2327
line , p_audio_config -> achan [channel ].txtail );
2308
2328
}
2309
2329
}
@@ -2852,7 +2872,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
2852
2872
dw_printf ("Config file: FILTER IG ... on line %d.\n" , line );
2853
2873
dw_printf ("Warning! Don't mess with IS>RF filtering unless you are an expert and have an unusual situation.\n" );
2854
2874
dw_printf ("Warning! The default is fine for nearly all situations.\n" );
2855
- dw_printf ("Warning! Be sure to read carefully and understand Successful-APRS-Gateway-Operation.pdf .\n" );
2875
+ dw_printf ("Warning! Be sure to read carefully and understand \" Successful-APRS-Gateway-Operation.pdf\" .\n" );
2856
2876
dw_printf ("Warning! If you insist, be sure to add \" | i/180 \" so you don't break messaging.\n" );
2857
2877
}
2858
2878
else {
@@ -2892,7 +2912,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
2892
2912
dw_printf ("Warning! Don't mess with RF>IS filtering unless you are an expert and have an unusual situation.\n" );
2893
2913
dw_printf ("Warning! Expected behavior is for everything to go from RF to IS.\n" );
2894
2914
dw_printf ("Warning! The default is fine for nearly all situations.\n" );
2895
- dw_printf ("Warning! Be sure to read carefully and understand Successful-APRS-Gateway-Operation.pdf .\n" );
2915
+ dw_printf ("Warning! Be sure to read carefully and understand \" Successful-APRS-Gateway-Operation.pdf\" .\n" );
2896
2916
}
2897
2917
else {
2898
2918
to_chan = isdigit (* t ) ? atoi (t ) : -999 ;
@@ -4528,6 +4548,13 @@ void config_init (char *fname, struct audio_s *p_audio_config,
4528
4548
4529
4549
if (t != NULL && strlen (t ) > 0 ) {
4530
4550
p_igate_config -> t2_filter = strdup (t );
4551
+
4552
+ text_color_set (DW_COLOR_ERROR );
4553
+ dw_printf ("Line %d: Warning - IGFILTER is a rarely needed expert level feature.\n" , line );
4554
+ dw_printf ("If you don't have a special situation and a good understanding of\n" );
4555
+ dw_printf ("how this works, you probably should not be messing with it.\n" );
4556
+ dw_printf ("The default behavior is appropriate for most situations.\n" );
4557
+ dw_printf ("Please read \"Successful-APRS-IGate-Operation.pdf\".\n" );
4531
4558
}
4532
4559
}
4533
4560
0 commit comments