diff --git a/qml/ui/sidebar/MavlinkChoiceElement2.qml b/qml/ui/sidebar/MavlinkChoiceElement2.qml index 7be618b3a..9886ee856 100644 --- a/qml/ui/sidebar/MavlinkChoiceElement2.qml +++ b/qml/ui/sidebar/MavlinkChoiceElement2.qml @@ -35,7 +35,7 @@ BaseJoyEditElement2{ // EXTRA property string mPARAM_ID_CHANNEL_WIDTH: "CHANNEL_WIDTH" property string mPARAM_ID_FREQUENCY: "FREQUENCY" - property string mPARAM_ID_FREQUENCY_SCAN: "FREQUENCY_SCAN" // Added frequency scan param + property string mPARAM_ID_FREQUENCY_SCAN: "FREQUENCY_SCAN" property string mPARAM_ID_RATE: "RATE" @@ -120,7 +120,7 @@ BaseJoyEditElement2{ property string populate_display_text:"I SHOULD NEVER APPEAR" function populate(){ - if(m_param_id==mPARAM_ID_CHANNEL_WIDTH || m_param_id==mPARAM_ID_FREQUENCY || m_param_id==mPARAM_ID_RATE || m_param_id==mPARAM_ID_FREQUENCY_SCAN){ + if(m_param_id==mPARAM_ID_CHANNEL_WIDTH || m_param_id==mPARAM_ID_FREQUENCY || m_param_id==mPARAM_ID_RATE){ return; } // First, check if the system is alive diff --git a/qml/ui/sidebar/Panel1Link.qml b/qml/ui/sidebar/Panel1Link.qml index 7f4f35df4..f2063f955 100644 --- a/qml/ui/sidebar/Panel1Link.qml +++ b/qml/ui/sidebar/Panel1Link.qml @@ -57,7 +57,7 @@ SideBarBasePanel{ MavlinkChoiceElement2{ id:scan_frequency_element m_title: "Scan for Air" - m_param_id: ENABLE_JOY_RC + m_param_id: mPARAM_ID_FREQUENCY_SCAN m_settings_model: _ohdSystemGroundSettings onGoto_previous: { edit_frequency_element.takeover_control();