mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 03:19:54 +03:00
Semver cleanup
This commit is contained in:
parent
473adae418
commit
005efec007
11 changed files with 242 additions and 614 deletions
|
@ -334,12 +334,8 @@ function onConnect() {
|
|||
/*
|
||||
* Init PIDs bank with a length that depends on the version
|
||||
*/
|
||||
let pidCount;
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "2.5.0")) {
|
||||
pidCount = 11;
|
||||
} else {
|
||||
pidCount = 10;
|
||||
}
|
||||
let pidCount = 11;
|
||||
|
||||
for (let i = 0; i < pidCount; i++) {
|
||||
PIDs.push(new Array(4));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue