Skip to content

Commit aa8d449

Browse files
DSheirerDennis Sheirer
andauthored
#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 <[email protected]>
1 parent 7e709d9 commit aa8d449

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import java.text.SimpleDateFormat
2-
31
/*
42
* *****************************************************************************
5-
* Copyright (C) 2014-2023 Dennis Sheirer
3+
* Copyright (C) 2014-2024 Dennis Sheirer
64
*
75
* This program is free software: you can redistribute it and/or modify
86
* it under the terms of the GNU General Public License as published by
@@ -19,6 +17,10 @@ import java.text.SimpleDateFormat
1917
* ****************************************************************************
2018
*/
2119

20+
import java.text.SimpleDateFormat
21+
22+
23+
2224
/**
2325
* Instructions for building/compiling the sdrtrunk application.
2426
*
@@ -103,7 +105,7 @@ dependencies {
103105
implementation 'com.mpatric:mp3agic:0.9.1'
104106
implementation 'commons-io:commons-io:2.11.0'
105107
implementation 'eu.hansolo:charts:1.0.5'
106-
implementation 'io.github.dsheirer:radio-reference-api:15.1.9'
108+
implementation 'io.github.dsheirer:radio-reference-api:18.0.0'
107109
implementation 'javax.usb:usb-api:1.0.2'
108110
implementation 'net.coderazzi:tablefilter-swing:5.5.4'
109111
implementation 'org.apache.commons:commons-compress:1.21'

src/main/java/io/github/dsheirer/gui/playlist/radioreference/EnrichedSite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public String getDescription()
149149
{
150150
if(mSite != null)
151151
{
152-
return mSite.getDescription();
152+
return mSite.getDescription() + (mSite.getTdmaControlChannel() > 0 ? " (TDMA CC)" : "");
153153
}
154154

155155
return null;

src/main/java/io/github/dsheirer/gui/playlist/radioreference/SiteEditor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ public void setSite(EnrichedSite site, System system, SystemInformation systemIn
379379
getP25ControlLabel().setVisible(true);
380380
getTdmaControlToggleButton().setVisible(true);
381381
getFdmaControlToggleButton().setVisible(true);
382-
if(site.getSite().getModulation() != null && site.getSite().getModulation().contains(PHASE_2_TDMA_MODULATION))
382+
383+
if(site.getSite().getTdmaControlChannel() > 0) //Value is 0 for FDMA or 1 for TDMA
383384
{
384385
getTdmaControlToggleButton().setSelected(true);
385386
}

0 commit comments

Comments
 (0)