Skip to content

Commit

Permalink
Merge pull request #676 from OpenHD/consti-dev
Browse files Browse the repository at this point in the history
Audio fixes and more
  • Loading branch information
Consti10 authored Mar 20, 2024
2 parents 8bf300c + a1e1290 commit 3b462eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions qml/ui/HUDOverlayGrid.qml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ Item {
onClicked: {
sidebar.notify_sidebar_user_clicked_outside();
}
enabled: sidebar.visible
}

// By default on top row
Expand Down
10 changes: 10 additions & 0 deletions qml/ui/sidebar/MavlinkChoiceElement2.qml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,16 @@ BaseJoyEditElement2{

function user_selected_value(value_new){
// A few need to be handled specially
if(m_param_id==mPARAM_ID_FREQUENCY){
if(_fcMavlinkSystem.armed){
if(settings.dev_allow_freq_change_when_armed){
// okay
}else{
_qopenhd.show_toast("ARMED, change not possible");
return;
}
}
}
if(m_param_id==mPARAM_ID_FREQUENCY){
const new_frequency=value_new;
_qopenhd.set_busy_for_milliseconds(2000,"CHANGING FREQUENCY");
Expand Down

0 comments on commit 3b462eb

Please sign in to comment.