Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
43629ddb
Commit
43629ddb
authored
Jul 01, 2015
by
Don Gagne
Browse files
Pull image size from FirmwareImage object
parent
6863dcf7
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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