Added some text to PTT hamlib test dialog to guide people to where most common proble...
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 19 Jul 2017 22:34:46 +0000 (22:34 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 19 Jul 2017 22:34:46 +0000 (22:34 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3318 01035d8c-6547-0410-b346-abe4f91aad63

freedv-dev/src/dlg_ptt.cpp

index 588802e584773273c1bc58debd768bd63e696b24..7b8eecabcd6b4f6272381029c70489c56e61b556 100644 (file)
@@ -469,7 +469,8 @@ void ComPortsDlg::OnTest(wxCommandEvent& event) {
         Hamlib *hamlib = wxGetApp().m_hamlib; 
         bool status = hamlib->connect(rig, port.mb_str(wxConvUTF8), serial_rate);
         if (status == false) {
-            wxMessageBox("Couldn't connect to Radio with hamlib", wxT("Error"), wxOK | wxICON_ERROR, this);
+            wxMessageBox("Couldn't connect to Radio with Hamlib.  Make sure the Hamlib serial Device, Rate, and Params match your radio", 
+            wxT("Error"), wxOK | wxICON_ERROR, this);
             return;
         }
         else {
@@ -485,14 +486,18 @@ void ComPortsDlg::OnTest(wxCommandEvent& event) {
 
         wxString hamlibError;
         if (hamlib->ptt(true, hamlibError) == false) {
-            wxMessageBox(wxString("Hamlib PTT Error: ") + hamlibError, wxT("Error"), wxOK | wxICON_ERROR, this);
+            wxMessageBox(wxString("Hamlib PTT Error: ") + hamlibError + 
+                         wxString(".  Make sure the Hamlib serial Device, Rate, and Paramss match your radio"), 
+                         wxT("Error"), wxOK | wxICON_ERROR, this);
             return;
         }
 
         wxSleep(1);
 
         if (hamlib->ptt(false, hamlibError) == false) {
-            wxMessageBox(wxString("Hamlib PTT Error: ") + hamlibError, wxT("Error"), wxOK | wxICON_ERROR, this);
+            wxMessageBox(wxString("Hamlib PTT Error: ") + hamlibError +
+                         wxString(".  Make sure the Hamlib serial Device, Rate, and Paramss match your radio"), 
+                         wxT("Error"), wxOK | wxICON_ERROR, this);
         }
     }