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
43629ddb
Commit
43629ddb
authored
Jul 01, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull image size from FirmwareImage object
parent
6863dcf7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
FirmwareUpgradeController.cc
src/VehicleSetup/FirmwareUpgradeController.cc
+3
-3
FirmwareUpgradeController.h
src/VehicleSetup/FirmwareUpgradeController.h
+0
-2
No files found.
src/VehicleSetup/FirmwareUpgradeController.cc
View file @
43629ddb
...
...
@@ -363,12 +363,12 @@ void FirmwareUpgradeController::_downloadFinished(void)
// We can't proceed unless we have the bootloader
if
(
!
_bootloaderFound
)
{
_errorCancel
(
QString
(
"Bootloader not found"
).
arg
(
_imageSize
).
arg
(
_bootloaderBoardFlashSize
)
);
_errorCancel
(
"Bootloader not found"
);
return
;
}
if
(
_bootloaderBoardFlashSize
!=
0
&&
_imageSize
>
_bootloaderBoardFlashSize
)
{
_errorCancel
(
QString
(
"Image size of %1 is too large for board flash size %2"
).
arg
(
_imageSize
).
arg
(
_bootloaderBoardFlashSize
));
if
(
_bootloaderBoardFlashSize
!=
0
&&
image
->
imageSize
()
>
_bootloaderBoardFlashSize
)
{
_errorCancel
(
QString
(
"Image size of %1 is too large for board flash size %2"
).
arg
(
image
->
imageSize
()
).
arg
(
_bootloaderBoardFlashSize
));
return
;
}
...
...
src/VehicleSetup/FirmwareUpgradeController.h
View file @
43629ddb
...
...
@@ -154,8 +154,6 @@ private:
bool
_startFlashWhenBootloaderFound
;
FirmwareType_t
_startFlashWhenBootloaderFoundFirmwareType
;
uint32_t
_imageSize
;
///< Image size of firmware being flashed
QPixmap
_boardIcon
;
///< Icon used to display image of board
...
...
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