From aa4d548e48589148766ab02abd2711f0d2b83557 Mon Sep 17 00:00:00 2001 From: gaelj Date: Thu, 21 Jul 2016 19:59:29 +0200 Subject: [PATCH 1/2] Adds target and firmware version selects to firmware flasher tab (catch-up with betaflight) --- _locales/en/messages.json | 19 +++- tabs/firmware_flasher.html | 10 ++- tabs/firmware_flasher.js | 176 ++++++++++++++++++++----------------- 3 files changed, 118 insertions(+), 87 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 99b8e601..29cb1edf 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1364,8 +1364,12 @@ "firmwareFlasherNoReboot": { "message": "No reboot sequence" }, - "firmwareFlasherOnlineReleasesDescription": { - "message": "Available online firmware releases - Select the correct firmware appropriate for your board." + "firmwareFlasherOnlineSelectBoardDescription": { + + "message": "Select your board to see available online firmware releases - Select the correct firmware appropriate for your board." + }, + "firmwareFlasherOnlineSelectFirmwareVersionDescription": { + "message": "Select firmware version for your board." }, "firmwareFlasherNoRebootDescription": { "message": "Enable if you powered your FC while the bootloader pins are jumpered or have your FC's BOOT button pressed." @@ -1403,6 +1407,15 @@ "firmwareFlasherOptionLabelSelectFirmware": { "message": "Choose a Firmware / Board" }, + "firmwareFlasherOptionLabelSelectBoard": { + "message": "Choose a Board" + }, + "firmwareFlasherOptionLabelSelectFirmwareVersion": { + "message": "Choose a Firmware version" + }, + "firmwareFlasherOptionLabelSelectFirmwareVersionFor": { + "message": "Choose a Firmware version for" + }, "firmwareFlasherButtonLoadLocal": { "message": "Load Firmware [Local]" }, @@ -1434,7 +1447,7 @@ "message": "Warning" }, "firmwareFlasherWarningText": { - "message": "Please do not try to flash non-cleanflight hardware with this firmware flasher.
Do not disconnect the board or turn off your computer while flashing.

Note: STM32 bootloader is stored in ROM, it cannot be bricked.
Note: Auto-Connect is always disabled while you are inside firmware flasher.
Note: Make sure you have a backup; some upgrades/downgrades will wipe your configuration.
Note: If you have problems flashing try disconnecting all cables from your FC first, try rebooting, upgrade chrome, upgrade drivers.
Note: When flashing boards that have directly connected USB sockets (SPRacingF3Mini, Sparky, ColibriRace, etc) ensure you have read the USB Flashing section of the Cleanflight manual and have the correct software and drivers installed" + "message": "Please do not try to flash non-iNAV hardware with this firmware flasher.
Do not disconnect the board or turn off your computer while flashing.

Note: STM32 bootloader is stored in ROM, it cannot be bricked.
Note: Auto-Connect is always disabled while you are inside firmware flasher.
Note: Make sure you have a backup; some upgrades/downgrades will wipe your configuration.
Note: If you have problems flashing try disconnecting all cables from your FC first, try rebooting, upgrade chrome, upgrade drivers.
Note: When flashing boards that have directly connected USB sockets (SPRacingF3Mini, Sparky, ColibriRace, etc) ensure you have read the USB Flashing section of the Cleanflight manual and have the correct software and drivers installed" }, "firmwareFlasherRecoveryHead": { "message": "Recovery / Lost communication" diff --git a/tabs/firmware_flasher.html b/tabs/firmware_flasher.html index d6a65815..c1793793 100755 --- a/tabs/firmware_flasher.html +++ b/tabs/firmware_flasher.html @@ -4,10 +4,16 @@
- - + + + + +