Skip to content

Commit

Permalink
#1899 radio reference API version 18 and update site editor to use ne…
Browse files Browse the repository at this point in the history
…w 'tdma_cc' flag to distinguish P25 Phase 2 FDMA vs TDMA control channel sites.
  • Loading branch information
Dennis Sheirer committed Apr 27, 2024
1 parent 7e709d9 commit a06a9b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import java.text.SimpleDateFormat

/*
* *****************************************************************************
* Copyright (C) 2014-2023 Dennis Sheirer
* Copyright (C) 2014-2024 Dennis Sheirer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -19,6 +17,10 @@ import java.text.SimpleDateFormat
* ****************************************************************************
*/

import java.text.SimpleDateFormat



/**
* Instructions for building/compiling the sdrtrunk application.
*
Expand Down Expand Up @@ -103,7 +105,7 @@ dependencies {
implementation 'com.mpatric:mp3agic:0.9.1'
implementation 'commons-io:commons-io:2.11.0'
implementation 'eu.hansolo:charts:1.0.5'
implementation 'io.github.dsheirer:radio-reference-api:15.1.9'
implementation 'io.github.dsheirer:radio-reference-api:18.0.0'
implementation 'javax.usb:usb-api:1.0.2'
implementation 'net.coderazzi:tablefilter-swing:5.5.4'
implementation 'org.apache.commons:commons-compress:1.21'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public String getDescription()
{
if(mSite != null)
{
return mSite.getDescription();
return mSite.getDescription() + (mSite.getTdmaControlChannel() > 0 ? " (TDMA CC)" : "");
}

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ public void setSite(EnrichedSite site, System system, SystemInformation systemIn
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);
}
Expand Down

0 comments on commit a06a9b7

Please sign in to comment.