From a14478fd0945b1936728f5023773ceaae07655d7 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Wed, 19 Jul 2017 22:34:46 +0000 Subject: [PATCH] Added some text to PTT hamlib test dialog to guide people to where most common problems are git-svn-id: https://svn.code.sf.net/p/freetel/code@3318 01035d8c-6547-0410-b346-abe4f91aad63 --- freedv-dev/src/dlg_ptt.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/freedv-dev/src/dlg_ptt.cpp b/freedv-dev/src/dlg_ptt.cpp index 588802e5..7b8eecab 100644 --- a/freedv-dev/src/dlg_ptt.cpp +++ b/freedv-dev/src/dlg_ptt.cpp @@ -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); } } -- 2.25.1