#1899 radio reference API version 18 and update site editor to use new 'tdma_cc' flag to distinguish P25 Phase 2 FDMA vs TDMA control channel sites. (#1900)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
Denny Sheirer
2024-04-27 10:32:46 -04:00
committed by GitHub
parent 7e709d9d6f
commit aa8d449140
3 changed files with 9 additions and 6 deletions

View File

@@ -149,7 +149,7 @@ public class EnrichedSite implements Comparable<EnrichedSite>
{
if(mSite != null)
{
return mSite.getDescription();
return mSite.getDescription() + (mSite.getTdmaControlChannel() > 0 ? " (TDMA CC)" : "");
}
return null;

View File

@@ -379,7 +379,8 @@ public class SiteEditor extends GridPane
getP25ControlLabel().setVisible(true);
getTdmaControlToggleButton().setVisible(true);
getFdmaControlToggleButton().setVisible(true);
if(site.getSite().getModulation() != null && site.getSite().getModulation().contains(PHASE_2_TDMA_MODULATION))
if(site.getSite().getTdmaControlChannel() > 0) //Value is 0 for FDMA or 1 for TDMA
{
getTdmaControlToggleButton().setSelected(true);
}