Skip to content

Commit

Permalink
Update MavlinkChoiceElement2.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Nov 25, 2024
1 parent 3299cf0 commit 62bc6dd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions qml/ui/sidebar/MavlinkChoiceElement2.qml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ BaseJoyEditElement2{
}else{
m_param_exists=m_settings_model.param_int_exists(m_param_id)
}
// if(!m_param_exists){
// console.log("Param "+m_param_id+" does not exist");
// populate_display_text="NOT\nAVAILABLE";
// return;
// }
if(!m_param_exists){
console.log("Param "+m_param_id+" does not exist");
populate_display_text="NOT\nAVAILABLE";
return;
}
if(override_takes_string_param){
var actual_value_string=m_settings_model.get_cached_string(m_param_id);
update_display_text(actual_value_string);
Expand Down Expand Up @@ -254,6 +254,9 @@ BaseJoyEditElement2{
populate_display_text="N/A";
return;
}
if(m_param_id==mPARAM_ID_FREQUENCY_SCAN){
m_param_exists=true;
}
if(m_param_id==mPARAM_ID_FREQUENCY){
if(curr_channel_mhz<=0){
m_param_exists=false;
Expand Down

0 comments on commit 62bc6dd

Please sign in to comment.