Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
08a7006a
Unverified
Commit
08a7006a
authored
Feb 20, 2020
by
Don Gagne
Committed by
GitHub
Feb 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8377 from DonLakeFlyer/StableFWCheck
Vehicle only performs stable fw version check one time
parents
6eb0173e
c0d503f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
FirmwarePlugin.cc
src/FirmwarePlugin/FirmwarePlugin.cc
+8
-0
Vehicle.cc
src/Vehicle/Vehicle.cc
+2
-1
Vehicle.h
src/Vehicle/Vehicle.h
+1
-0
No files found.
src/FirmwarePlugin/FirmwarePlugin.cc
View file @
08a7006a
...
...
@@ -824,6 +824,14 @@ void FirmwarePlugin::checkIfIsLatestStable(Vehicle* vehicle)
_versionFileDownloadFinished
(
remoteFile
,
localFile
,
vehicle
);
sender
()
->
deleteLater
();
});
connect
(
downloader
,
&
QGCFileDownload
::
error
,
this
,
[
=
](
QString
errorMsg
)
{
qCDebug
(
FirmwarePluginLog
)
<<
"Failed to download the latest fw version file. Error: "
<<
errorMsg
;
downloader
->
deleteLater
();
});
downloader
->
download
(
versionFile
);
}
...
...
src/Vehicle/Vehicle.cc
View file @
08a7006a
...
...
@@ -1343,7 +1343,8 @@ void Vehicle::_handleAutopilotVersion(LinkInterface *link, mavlink_message_t& me
nullStr
[
8
]
=
0
;
_gitHash
=
nullStr
;
}
if
(
_toolbox
->
corePlugin
()
->
options
()
->
checkFirmwareVersion
())
{
if
(
_toolbox
->
corePlugin
()
->
options
()
->
checkFirmwareVersion
()
&&
!
_checkLatestStableFWDone
)
{
_checkLatestStableFWDone
=
true
;
_firmwarePlugin
->
checkIfIsLatestStable
(
this
);
}
emit
gitHashChanged
(
_gitHash
);
...
...
src/Vehicle/Vehicle.h
View file @
08a7006a
...
...
@@ -1504,6 +1504,7 @@ private:
bool
_isROIEnabled
=
false
;
Joystick
*
_activeJoystick
=
nullptr
;
bool
_checkLatestStableFWDone
=
false
;
int
_firmwareMajorVersion
;
int
_firmwareMinorVersion
;
int
_firmwarePatchVersion
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment