Skip to content

Commit

Permalink
Add 800XA to multi-receive mode list.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Dec 10, 2023
1 parent 87588d0 commit bfb0eff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/freedv_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ float FreeDVInterface::GetMinimumSNR_(int mode)
return 4.0f;
case FREEDV_MODE_2020:
return 2.0f;
case FREEDV_MODE_800XA:
return 2.0f;
default:
return 0.0f;
}
Expand Down
12 changes: 3 additions & 9 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1831,8 +1831,7 @@ void MainFrame::performFreeDVOn_()
wxCommandEvent tmpEvent;
OnChangeTxMode(tmpEvent);

if (g_mode == FREEDV_MODE_800XA ||
!wxGetApp().appConfiguration.multipleReceiveEnabled)
if (!wxGetApp().appConfiguration.multipleReceiveEnabled)
{
m_rb1600->Disable();
m_rb700c->Disable();
Expand Down Expand Up @@ -1860,19 +1859,14 @@ void MainFrame::performFreeDVOn_()
FREEDV_MODE_700E,
FREEDV_MODE_700C,
FREEDV_MODE_700D,

// These modes require more CPU than typical (and will drive at least one core to 100% if
// used with the other five above), so we're excluding them from multi-RX. They also aren't
// selectable during a session when multi-RX is enabled.
//FREEDV_MODE_800XA
FREEDV_MODE_800XA
};

for (auto& mode : rxModes)
{
freedvInterface.addRxMode(mode);
}

m_rb800xa->Disable();

// If we're receive-only, it doesn't make sense to be able to change TX mode.
if (g_nSoundCards <= 1)
{
Expand Down

0 comments on commit bfb0eff

Please sign in to comment.