1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1493 Update BOARD_REVISION for discoveryf4bare and fix AutoUpdate

This commit is contained in:
Stefan Karlsson 2014-09-15 23:30:17 +02:00
parent 61a58eeba9
commit dd86e7f9c4
4 changed files with 8 additions and 2 deletions

View File

@ -698,7 +698,7 @@ endif
##############################
# Firmware files to package
PACKAGE_FW_TARGETS := $(filter-out fw_simposix fw_discoveryf4bare, $(FW_TARGETS))
PACKAGE_FW_TARGETS := $(filter-out fw_simposix, $(FW_TARGETS))
PACKAGE_ELF_TARGETS := $(filter fw_simposix, $(FW_TARGETS))
# Rules to generate GCS resources used to embed firmware binaries into the GCS.

View File

@ -1,5 +1,5 @@
BOARD_TYPE := 0x09
BOARD_REVISION := 0x03
BOARD_REVISION := 0x04
BOOTLOADER_VERSION := 0x06
HW_TYPE := 0x00

View File

@ -102,6 +102,9 @@ void DeviceWidget::populate()
case 0x0903:
devicePic.load(":/uploader/images/gcs-board-revo.png");
break;
case 0x0904:
devicePic.load(":/uploader/images/gcs-board-revo.png");
break;
default:
// Clear
devicePic.load("");

View File

@ -667,6 +667,9 @@ bool UploaderGadgetWidget::autoUpdate()
case 0x903:
filename = "fw_revolution";
break;
case 0x904:
filename = "fw_discoveryf4bare";
break;
default:
emit autoUpdateSignal(FAILURE, QVariant());
return false;