1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Small patch

This commit is contained in:
Mark Haslinghuis 2021-10-04 18:21:02 +02:00
parent 2b98947fb4
commit 1251120115
No known key found for this signature in database
GPG key ID: 198B0F616296A584
5 changed files with 16 additions and 11 deletions

View file

@ -863,13 +863,14 @@ const FC = {
getPidDefaults() {
let versionPidDefaults = this.DEFAULT_PIDS;
// if defaults change they should go here
if (semver.gte(this.CONFIG.apiVersion, API_VERSION_1_43)) {
if (semver.eq(this.CONFIG.apiVersion, API_VERSION_1_43)) {
versionPidDefaults = [
42, 85, 35, 23, 90,
46, 90, 38, 25, 95,
45, 90, 0, 0, 90,
];
} else if (semver.gte(this.CONFIG.apiVersion, API_VERSION_1_44)) {
}
if (semver.gte(this.CONFIG.apiVersion, API_VERSION_1_44)) {
versionPidDefaults = [
45, 80, 40, 30, 120,
47, 84, 46, 34, 125,