LibraryPathSwitch :=-L\r
PreprocessorSwitch :=-D\r
SourceSwitch :=-c \r
-OutputFile :=$(IntermediateDirectory)/$(ProjectName)\r
+OutputFile :=$(IntermediateDirectory)/freeDV\r
Preprocessors :=$(PreprocessorSwitch)__WX__ \r
ObjectSwitch :=-o \r
ArchiveOutputSwitch := \r
AR := ar rcus\r
CXX := g++\r
CC := gcc\r
-CXXFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"1083\" $(Preprocessors)\r
-CFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"1083\" $(Preprocessors)\r
+CXXFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"1088\" $(Preprocessors)\r
+CFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"1088\" $(Preprocessors)\r
\r
\r
##\r
<Library Value="ctb-0.16.dll"/>
</Linker>
<ResourceCompiler Options="$(shell wx-config --rcflags)" Required="no"/>
- <General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Debug" Command="./$(ProjectName)" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="no"/>
+ <General OutputFile="$(IntermediateDirectory)/freeDV" IntermediateDirectory="./Debug" Command="./freeDV.exe" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes"/>
<Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>">
<![CDATA[]]>
</Environment>
<Library Value="ctb-0.16.dll"/>
</Linker>
<ResourceCompiler Options="$(shell wx-config --rcflags)" Required="no"/>
- <General OutputFile="$(IntermediateDirectory)/freeDV" IntermediateDirectory="./Release" Command="./freeDV" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="no"/>
+ <General OutputFile="$(IntermediateDirectory)/freeDV" IntermediateDirectory="./Release" Command="./freeDV.exe" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="no"/>
<Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>">
<![CDATA[]]>
</Environment>
<Project Name="dialogTest" ConfigName="Debug"/>
<Project Name="bigButtonRig" ConfigName="Debug"/>
</WorkspaceConfiguration>
- <WorkspaceConfiguration Name="Release" Selected="yes">
+ <WorkspaceConfiguration Name="Release" Selected="no">
<Project Name="fdmdv2" ConfigName="Release"/>
<Project Name="rawbits" ConfigName="Release"/>
<Project Name="pa_enum" ConfigName="Release"/>
MainFrame::MainFrame(wxWindow *parent) : TopFrame(parent)
{
m_zoom = 1.;
-
+ m_serialPort = NULL;
+ m_device = NULL;
+
tools->AppendSeparator();
wxMenuItem* m_menuItemToolsConfigDelete;
m_menuItemToolsConfigDelete = new wxMenuItem(tools, wxID_ANY, wxString(_("&Restore defaults")) , wxT("Delete config file/keys and restore defaults"), wxITEM_NORMAL);
m_auiNbookCtrl->ChangeSelection(4); // is there a way to avoid hard coding this?
}
g_tx = m_btnTogPTT->GetValue();
-
+ // The following sets and clears may be exactly inverted.
+ // I don't know and I'm not set up to tell yet.
+ // If so, one just needs to invert the polarity selection
+ // on the Tools>PTT configuration page.
if(event.IsChecked())
{
- m_serialPort->SetLineState(ctb::LinestateRts);
+ if(wxGetApp().m_boolUseRTS)
+ {
+ if(wxGetApp().m_boolRTSPos)
+ {
+ m_serialPort->SetLineState(ctb::LinestateRts);
+ }
+ else
+ {
+ m_serialPort->ClrLineState(ctb::LinestateRts);
+ }
+ }
+ else
+ {
+ if(wxGetApp().m_boolRTSPos)
+ {
+ m_serialPort->ClrLineState(ctb::LinestateRts);
+ }
+ else
+ {
+ m_serialPort->SetLineState(ctb::LinestateRts);
+ }
+ }
// m_btnTogPTT->SetLabel(wxT("PTT"));
}
else
{
- m_serialPort->ClrLineState(ctb::LinestateRts);
+ if(wxGetApp().m_boolUseDTR)
+ {
+ if(wxGetApp().m_boolDTRPos)
+ {
+ m_serialPort->SetLineState(ctb::LinestateDtr);
+ }
+ else
+ {
+ m_serialPort->ClrLineState(ctb::LinestateDtr);
+ }
+ }
+ else
+ {
+ if(wxGetApp().m_boolDTRPos)
+ {
+ m_serialPort->ClrLineState(ctb::LinestateDtr);
+ }
+ else
+ {
+ m_serialPort->SetLineState(ctb::LinestateDtr);
+ }
+ }
// m_btnTogPTT->SetLabel(wxT("PTT"));
- }
+ }
// reset level gauge
m_maxLevel = 0;
{
wxUnusedVar(event);
int rv = 0;
+
+ CloseSerialPort();
ComPortsDlg *dlg = new ComPortsDlg(NULL);
rv = dlg->ShowModal();
if(rv == wxID_OK)
{
dlg->ExchangeData(EXCHANGE_DATA_OUT);
- CloseSerialPort();
SetupSerialPort();
}
delete dlg;
//----------------------------------------------------------------
void MainFrame::CloseSerialPort(void)
{
- if(m_serialPort->IsOpen())
+ if((m_serialPort != NULL) && m_serialPort->IsOpen())
{
m_serialPort->Close();
- m_device = NULL;
+ m_serialPort = NULL;
+ m_device = NULL;
//m_btnTogPTT->SetLabel(wxT("PTT"));
m_btnTogPTT->Enable(false);
}
## Auto Generated makefile by CodeLite IDE\r
## any manual changes will be erased \r
##\r
-## Debug\r
+## Release\r
ProjectName :=pa_enum\r
-ConfigurationName :=Debug\r
+ConfigurationName :=Release\r
WorkspacePath := "D:\Projects\Radio\fdmdv2\build"\r
ProjectPath := "D:\Projects\Radio\fdmdv2\tests\pa_enum"\r
-IntermediateDirectory :=./Debug\r
+IntermediateDirectory :=./Release\r
OutDir := $(IntermediateDirectory)\r
CurrentFileName :=\r
CurrentFilePath :=\r
MakeDirCommand :=makedir\r
RcCmpOptions := $(shell wx-config --rcflags)\r
RcCompilerName :=windres\r
-LinkOptions := -mwindows $(shell wx-config --debug=yes --libs --unicode=yes)\r
+LinkOptions := -mwindows -s $(shell wx-config --debug=no --libs --unicode=yes)\r
IncludePath := $(IncludeSwitch). $(IncludeSwitch)/bin/MinGW-4.6.1/msys/1.0/local/include $(IncludeSwitch)../../codec2-dev/src $(IncludeSwitch)/bin/Projects/Audio/libsndfile/ \r
IncludePCH := \r
RcIncludePath := \r
AR := ar rcus\r
CXX := g++\r
CC := gcc\r
-CXXFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"1083\" $(Preprocessors)\r
-CFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"1083\" $(Preprocessors)\r
+CXXFLAGS := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) -DSVN_REVISION=\"1083\" $(Preprocessors)\r
+CFLAGS := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) -DSVN_REVISION=\"1083\" $(Preprocessors)\r
\r
\r
##\r
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)\r
\r
$(IntermediateDirectory)/.d:\r
- @$(MakeDirCommand) "./Debug"\r
+ @$(MakeDirCommand) "./Release"\r
\r
PreBuild:\r
\r
$(RM) $(IntermediateDirectory)/AudioOptsDialog$(PreprocessSuffix)\r
$(RM) $(OutputFile)\r
$(RM) $(OutputFile).exe\r
- $(RM) "D:\Projects\Radio\fdmdv2\build\.build-debug\pa_enum"\r
+ $(RM) "D:\Projects\Radio\fdmdv2\build\.build-release\pa_enum"\r
\r
\r