@@ -291,6 +291,7 @@ static struct audio_s *save_audio_config_p;
291
291
static struct igate_config_s * save_igate_config_p ;
292
292
static struct digi_config_s * save_digi_config_p ;
293
293
static int s_debug ;
294
+ static int s_quiet ;
294
295
295
296
296
297
/*
@@ -388,6 +389,7 @@ int igate_get_dnl_cnt (void) {
388
389
* 1 plus packets sent TO server or why not.
389
390
* 2 plus duplicate detection overview.
390
391
* 3 plus duplicate detection details.
392
+ * quiet - Silence iGate Traffic from Logs
391
393
*
392
394
* Description: This starts two threads:
393
395
*
@@ -397,7 +399,7 @@ int igate_get_dnl_cnt (void) {
397
399
*--------------------------------------------------------------------*/
398
400
399
401
400
- void igate_init (struct audio_s * p_audio_config , struct igate_config_s * p_igate_config , struct digi_config_s * p_digi_config , int debug_level )
402
+ void igate_init (struct audio_s * p_audio_config , struct igate_config_s * p_igate_config , struct digi_config_s * p_digi_config , int debug_level , int quiet )
401
403
{
402
404
#if __WIN32__
403
405
HANDLE connnect_th ;
@@ -410,6 +412,7 @@ void igate_init (struct audio_s *p_audio_config, struct igate_config_s *p_igate_
410
412
int e ;
411
413
#endif
412
414
s_debug = debug_level ;
415
+ s_quiet = quiet ;
413
416
dp_queue_head = NULL ;
414
417
415
418
#if DEBUGx
@@ -1469,22 +1472,24 @@ static void * igate_recv_thread (void *arg)
1469
1472
* channels, each with own client side filtering and via path.
1470
1473
* Loop here over all configured channels.
1471
1474
*/
1472
- text_color_set (DW_COLOR_REC );
1473
- dw_printf ("\n[ig>tx] " ); // formerly just [ig]
1474
- ax25_safe_print ((char * )message , len , 0 );
1475
- dw_printf ("\n" );
1475
+ if (s_quiet == 0 ) {
1476
+ text_color_set (DW_COLOR_REC );
1477
+ dw_printf ("\n[ig>tx] " ); // formerly just [ig]
1478
+ ax25_safe_print ((char * )message , len , 0 );
1479
+ dw_printf ("\n" );
1476
1480
1477
- if ((int )strlen ((char * )message ) != len ) {
1481
+ if ((int )strlen ((char * )message ) != len ) {
1478
1482
1479
- // Invalid. Either drop it or pass it along as-is. Don't change.
1483
+ // Invalid. Either drop it or pass it along as-is. Don't change.
1480
1484
1481
- text_color_set (DW_COLOR_ERROR );
1482
- dw_printf ("'nul' character found in packet from IS. This should never happen.\n" );
1483
- dw_printf ("The source station is probably transmitting with defective software.\n" );
1485
+ text_color_set (DW_COLOR_ERROR );
1486
+ dw_printf ("'nul' character found in packet from IS. This should never happen.\n" );
1487
+ dw_printf ("The source station is probably transmitting with defective software.\n" );
1484
1488
1485
- //if (strcmp((char*)pinfo, "4P") == 0) {
1486
- // dw_printf("The TM-D710 will do this intermittently. A firmware upgrade is needed to fix it.\n");
1487
- //}
1489
+ //if (strcmp((char*)pinfo, "4P") == 0) {
1490
+ // dw_printf("The TM-D710 will do this intermittently. A firmware upgrade is needed to fix it.\n");
1491
+ //}
1492
+ }
1488
1493
}
1489
1494
1490
1495
/*
0 commit comments