From d3cc5adfd0fc87dac0b17496d264b463a06a4e0d Mon Sep 17 00:00:00 2001 From: Hydra Date: Thu, 21 May 2020 20:54:11 +0200 Subject: [PATCH 1/2] Fix rates logo. --- src/images/rate_logos/cleanflight.svg | 131 ++++++++++++++++++++++++++ src/js/tabs/pid_tuning.js | 6 +- src/tabs/pid_tuning.html | 2 +- 3 files changed, 135 insertions(+), 4 deletions(-) create mode 100644 src/images/rate_logos/cleanflight.svg diff --git a/src/images/rate_logos/cleanflight.svg b/src/images/rate_logos/cleanflight.svg new file mode 100644 index 000000000..89172d5c9 --- /dev/null +++ b/src/images/rate_logos/cleanflight.svg @@ -0,0 +1,131 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/src/js/tabs/pid_tuning.js b/src/js/tabs/pid_tuning.js index cccda8333..a68076634 100644 --- a/src/js/tabs/pid_tuning.js +++ b/src/js/tabs/pid_tuning.js @@ -417,7 +417,7 @@ TABS.pid_tuning.initialize = function (callback) { if (semver.gte(CONFIG.apiVersion, API_VERSION_1_43)) { const ratesTypeListElement = $('select[id="ratesType"]'); // generates list const ratesList = [ - {name: "Betaflight"}, + {name: "Cleanflight"}, {name: "Raceflight"}, {name: "KISS"}, {name: "Actual"}, @@ -2569,8 +2569,8 @@ TABS.pid_tuning.changeRatesTypeLogo = function() { break; // add future rates types here - default: // BetaFlight - ratesLogoElement.attr("src", "../images/rate_logos/betaflight.svg"); + default: // Cleanflight + ratesLogoElement.attr("src", "../images/rate_logos/cleanflight.svg"); break; } diff --git a/src/tabs/pid_tuning.html b/src/tabs/pid_tuning.html index 21d80b9f2..56b3ed6eb 100644 --- a/src/tabs/pid_tuning.html +++ b/src/tabs/pid_tuning.html @@ -679,7 +679,7 @@
- +
From f2b2d88edf86ea217814a4e5919c2375f3189950 Mon Sep 17 00:00:00 2001 From: Hydra Date: Thu, 21 May 2020 20:54:30 +0200 Subject: [PATCH 2/2] Fix unified target source url. --- src/js/tabs/firmware_flasher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/tabs/firmware_flasher.js b/src/js/tabs/firmware_flasher.js index a32e2299b..ef62faa65 100755 --- a/src/js/tabs/firmware_flasher.js +++ b/src/js/tabs/firmware_flasher.js @@ -27,7 +27,7 @@ TABS.firmware_flasher.initialize = function (callback) { self.intel_hex = undefined; self.parsed_hex = undefined; - var unifiedSource = 'https://api.github.com/repos/betaflight/unified-targets/contents/configs/default'; + var unifiedSource = 'https://api.github.com/repos/cleanflight/unified-targets/contents/configs/default'; function onFirmwareCacheUpdate(release) { $('select[name="firmware_version"] option').each(function () {