m_rb700b->Disable();
m_rb700c->Disable();
m_rb800xa->Disable();
- if (m_rbPlugIn)
+ if (m_rbPlugIn != NULL)
m_rbPlugIn->Disable();
// determine what mode we are using
if (m_rb800xa->GetValue()) {
g_mode = FREEDV_MODE_800XA;
}
- if (m_rbPlugIn->GetValue()) {
- g_mode = -1; /* TODO; a better way of handling (enumarating?) non-freedv modes */
+ if (m_rbPlugIn != NULL) {
+ if (m_rbPlugIn->GetValue()) {
+ g_mode = -1; /* TODO; a better way of handling (enumarating?) non-freedv modes */
- /* scale plots assuming Fs = 8000 Hz for now */
+ /* scale plots assuming Fs = 8000 Hz for now */
- m_panelSpectrum->setFreqScale(MODEM_STATS_NSPEC*((float)MAX_F_HZ)/8000.0);
- m_panelWaterfall->setFs(8000.0);
+ m_panelSpectrum->setFreqScale(MODEM_STATS_NSPEC*((float)MAX_F_HZ)/8000.0);
+ m_panelWaterfall->setFs(8000.0);
- (wxGetApp().m_plugin_startfp)(wxGetApp().m_plugInStates);
+ (wxGetApp().m_plugin_startfp)(wxGetApp().m_plugInStates);
+ }
}
if (g_mode != -1) {
m_rb700b->Enable();
m_rb700c->Enable();
m_rb800xa->Enable();
- if (m_rbPlugIn)
+ if (m_rbPlugIn != NULL)
m_rbPlugIn->Enable();
#ifdef DISABLED_FEATURE
sbSizer_mode->Add(m_rb1600, 0, wxALIGN_LEFT|wxALL, 1);
m_rb1600->SetValue(true);
+ m_rbPlugIn = NULL;
if (!wxIsEmpty(plugInName)) {
// Optional plug in