MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / actionOnMenuSetPPM

Method actionOnMenuSetPPM

src/AppFrame.cpp:1996–2010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1994}
1995
1996bool AppFrame::actionOnMenuSetPPM(wxCommandEvent &event) {
1997 if (event.GetId() == wxID_SET_PPM) {
1998 long ofs = wxGetNumberFromUser(
1999 "Frequency correction for device in PPM.\ni.e. -51 for -51 PPM\n\nNote: you can adjust PPM interactively\nby holding ALT over the frequency tuning bar.\n",
2000 "Parts per million (PPM)",
2001 "Frequency Correction", wxGetApp().getPPM(), -1000, 1000, this);
2002 wxGetApp().setPPM(ofs);
2003
2004 settingsMenuItems[wxID_SET_PPM]->SetItemLabel(
2005 getSettingsLabel("Device PPM", to_string(wxGetApp().getPPM()), "ppm"));
2006
2007 return true;
2008 }
2009 return false;
2010}
2011
2012bool AppFrame::actionOnMenuSDRDevices(wxCommandEvent &event) {
2013 if (event.GetId() == wxID_SDR_DEVICES) {

Callers

nothing calls this directly

Calls 2

getPPMMethod · 0.45
setPPMMethod · 0.45

Tested by

no test coverage detected