1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

chore: add comman dangle rule for multiline

This commit is contained in:
Tomas Chmelevskij 2021-12-18 08:21:05 +01:00
parent ae2ef20ce2
commit 03690e087f
43 changed files with 203 additions and 202 deletions

View file

@ -109,7 +109,7 @@ TABS.receiver.initialize = function (callback) {
i18n.getMessage('controlAxisRoll'),
i18n.getMessage('controlAxisPitch'),
i18n.getMessage('controlAxisYaw'),
i18n.getMessage('controlAxisThrottle')
i18n.getMessage('controlAxisThrottle'),
];
const barContainer = $('.tab-receiver .bars');
@ -143,7 +143,7 @@ TABS.receiver.initialize = function (callback) {
// we could probably use min and max throttle for the range, will see
const meterScale = {
'min': 800,
'max': 2200
'max': 2200,
};
const meterFillArray = [];
@ -288,7 +288,7 @@ TABS.receiver.initialize = function (callback) {
'FRSKY_X',
'A7105_FLYSKY',
'A7105_FLYSKY_2A',
'NRF24_KN'
'NRF24_KN',
);
}
@ -296,20 +296,20 @@ TABS.receiver.initialize = function (callback) {
spiRxTypes.push(
'SFHSS',
'SPEKTRUM',
'FRSKY_X_LBT'
'FRSKY_X_LBT',
);
}
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_43)) {
spiRxTypes.push(
'REDPINE'
'REDPINE',
);
}
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
spiRxTypes.push(
'FRSKY_X_V2',
'FRSKY_X_LBT_V2'
'FRSKY_X_LBT_V2',
);
}
@ -514,9 +514,9 @@ TABS.receiver.initialize = function (callback) {
innerBounds: {
minWidth: windowWidth, minHeight: windowHeight,
width: windowWidth, height: windowHeight,
maxWidth: windowWidth, maxHeight: windowHeight
maxWidth: windowWidth, maxHeight: windowHeight,
},
alwaysOnTop: true
alwaysOnTop: true,
}, function(createdWindow) {
// Give the window a callback it can use to send the channels (otherwise it can't see those objects)
createdWindow.contentWindow.setRawRx = function(channels) {