mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-15 20:35:23 +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
|
@ -141,7 +141,7 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback)
|
|||
|
||||
GUI.log(i18n.getMessage('apiVersionReceived', [FC.CONFIG.apiVersion]));
|
||||
|
||||
if (semver.lt(FC.CONFIG.apiVersion, "1.42.0")) {
|
||||
if (semver.lt(FC.CONFIG.apiVersion, API_VERSION_1_42)) {
|
||||
|
||||
self.msp_connector.disconnect(function (disconnectionResult) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue