Skip to content

Commit

Permalink
Setting Squelch Mode to "CTCSS/DCS" when we've got a tone set for CTC…
Browse files Browse the repository at this point in the history
…SS/DCS decode
  • Loading branch information
K7ABD committed Jun 1, 2019
1 parent 000c3e0 commit a4a509e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions anytone-config-builder.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
CHAN_CONTACT => 9,
CHAN_CALL_TYPE => 10,
CHAN_TX_PERMIT => 12,
CHAN_SQUELCH_MODE => 13,
CHAN_COLOR_CODE => 19,
CHAN_TIME_SLOT => 20,
CHAN_SCANLIST_NAME => 21,
Expand All @@ -36,6 +37,7 @@
VAL_TX_PERMIT_ALWAYS => "Always",
VAL_CALL_TYPE_GROUP => "Group Call",
VAL_CALL_TYPE_PRIVATE => "Private Call",
VAL_CTCSS_DCS => "CTCSS/DCS",
};


Expand Down Expand Up @@ -349,6 +351,11 @@ sub analog_csv_field_extractor
$chan_config{+CHAN_TX_PROHIBIT} = validate_tx_prohibit( $row->[8]);
$chan_config{+CHAN_MODE} = VAL_ANALOG;

if ($chan_config{+CHAN_CTCSS_DEC} ne "Off")
{
$chan_config{+CHAN_SQUELCH_MODE} = VAL_CTCSS_DCS;
}

return \%chan_config;
}

Expand Down

0 comments on commit a4a509e

Please sign in to comment.