diff --git a/md380.c b/md380.c index 5372ea1..6751b74 100644 --- a/md380.c +++ b/md380.c @@ -352,6 +352,9 @@ static void print_freq(FILE *out, unsigned data) static void setup_channel(int i, char *name, double rx_mhz, double tx_mhz, int tmode, int power, int wide, int scan, int isam) { + //TODO: set autoscan=0 for simplex channels and hotspots, 1 for repeaters + //TODO: always set Data Call Confirmed=1 (wait for SMS acknowledge) + //TODO: always set talkaround=0 #if 0 memory_channel_t *ch = i + (memory_channel_t*) &radio_mem[OFFSET_CHANNELS]; @@ -879,7 +882,11 @@ static void md380_print_config(FILE *out, int verbose) fprintf(out, "# 3) List of channels: numbers and ranges (N-M) separated by comma\n"); fprintf(out, "#\n"); } - fprintf(out, "Scanlist Name PCh1 PCh2 TxCh Hold Smpl Channels\n"); + fprintf(out, "Scanlist Name PCh1 PCh2 TxCh "); +#ifdef PRINT_RARE_PARAMS + fprintf(out, "Hold Smpl "); +#endif + fprintf(out, "Channels\n"); for (i=0; itx_designated_ch); } +#ifdef PRINT_RARE_PARAMS fprintf(out, "%-4d %-4d ", sl->sign_hold_time * 25, sl->prio_sample_time * 250); +#endif if (sl->member[0]) { print_chanlist(out, sl->member, 31); } else { diff --git a/uv380.c b/uv380.c index d8754b9..ef136e0 100644 --- a/uv380.c +++ b/uv380.c @@ -368,6 +368,9 @@ static void print_freq(FILE *out, unsigned data) static void setup_channel(int i, char *name, double rx_mhz, double tx_mhz, int tmode, int power, int wide, int scan, int isam) { + //TODO: set autoscan=0 for simplex channels and hotspots, 1 for repeaters + //TODO: always set Data Call Confirmed=1 (wait for SMS acknowledge) + //TODO: always set talkaround=0 #if 0 memory_channel_t *ch = i + (memory_channel_t*) &radio_mem[OFFSET_CHANNELS]; @@ -625,7 +628,7 @@ static void print_chan_base(FILE *out, channel_t *ch, int cnum) if (ch->squelch <= 9) fprintf(out, "%1d ", ch->squelch); else - fprintf(out, "?? "); + fprintf(out, "1 "); if (ch->tot == 0) fprintf(out, "- "); @@ -915,7 +918,11 @@ static void uv380_print_config(FILE *out, int verbose) fprintf(out, "# 3) List of channels: numbers and ranges (N-M) separated by comma\n"); fprintf(out, "#\n"); } - fprintf(out, "Scanlist Name PCh1 PCh2 TxCh Hold Smpl Channels\n"); + fprintf(out, "Scanlist Name PCh1 PCh2 TxCh "); +#ifdef PRINT_RARE_PARAMS + fprintf(out, "Hold Smpl "); +#endif + fprintf(out, "Channels\n"); for (i=0; itx_designated_ch); } +#ifdef PRINT_RARE_PARAMS fprintf(out, "%-4d %-4d ", sl->sign_hold_time * 25, sl->prio_sample_time * 250); +#endif if (sl->member[0]) { print_chanlist(out, sl->member, 31); } else {