mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 13:25:24 +03:00
Replace API versions by constants
This commit is contained in:
parent
7fcc9efc72
commit
fd35031e6f
25 changed files with 315 additions and 301 deletions
|
@ -26,7 +26,7 @@ class Beepers {
|
|||
{ bit: 18, name: 'BLACKBOX_ERASE', visible: true },
|
||||
];
|
||||
|
||||
if (semver.gte(config.apiVersion, "1.37.0")) {
|
||||
if (semver.gte(config.apiVersion, API_VERSION_1_37)) {
|
||||
beepers.push(
|
||||
{ bit: 19, name: 'CRASH_FLIP', visible: true },
|
||||
{ bit: 20, name: 'CAM_CONNECTION_OPEN', visible: true },
|
||||
|
@ -34,7 +34,7 @@ class Beepers {
|
|||
);
|
||||
}
|
||||
|
||||
if (semver.gte(config.apiVersion, "1.39.0")) {
|
||||
if (semver.gte(config.apiVersion, API_VERSION_1_39)) {
|
||||
beepers.push(
|
||||
{ bit: 22, name: 'RC_SMOOTHING_INIT_FAIL', visible: true }
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue