1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-04-08 00:53:48 +02: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 # 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)) PACKAGE_ELF_TARGETS := $(filter fw_simposix, $(FW_TARGETS))
# Rules to generate GCS resources used to embed firmware binaries into the GCS. # Rules to generate GCS resources used to embed firmware binaries into the GCS.

View File

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

View File

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

View File

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