Skip to content

Commit

Permalink
Merge branch '2.5-evo' into dev-release
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle authored Oct 4, 2023
2 parents edf9118 + a45c689 commit 2610234
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/telemetry/models/fcmavlinksystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ std::optional<uint8_t> FCMavlinkSystem::get_fc_sys_id()

bool FCMavlinkSystem::set_system_id(int sys_id)
{
if(sys_id<0 || sys_id >= UINT8_MAX){

if(sys_id<=0 || sys_id >= UINT8_MAX){
qWarning()<<"Invalid sys id";
return false;
}
Expand Down
47 changes: 47 additions & 0 deletions qml/ui/configpopup/connect/PaneInfo.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtQuick.Dialogs 1.0
import QtQuick.Controls.Material 2.12

import Qt.labs.settings 1.0

import OpenHD 1.0

import "../../../ui" as Ui
import "../../elements"

Rectangle{
width: parent.width
height: parent.height
ColumnLayout{
anchors.fill: parent
spacing: 6
Text{
Layout.fillWidth: true
Layout.alignment: Qt.AlignTop
Layout.preferredHeight: 50
//width:parent.width
wrapMode: Text.WordWrap
verticalAlignment: Text.AlignTop
text: "When running QOpenHD on an external device (e.g. android phone)\n"+
"you have to use one of the given choices to connect the device to the OpenHD ground station"
}
Text{
Layout.preferredHeight: 50
text: "You are already connected to your ground station - nothing to do."
color: "#706F1D" // dark green
visible: m_is_connected_gnd
}
Text{
Layout.preferredHeight: 50
text: "Looks like you are not connected to your ground station - please use one of the given choices to connect."
color: "red"
visible: !m_is_connected_gnd
}
Item{
Layout.fillHeight: true
// filler
}
}
}

0 comments on commit 2610234

Please sign in to comment.