CF/BF - Support MSP/OSD Slave current sensor.

10.3.x-maintenance
Hydra 2017-04-25 00:08:39 +01:00 committed by mikeller
parent 400ccf8752
commit 25ed1743d6
2 changed files with 7 additions and 4 deletions

View File

@ -2261,6 +2261,9 @@
"powerAmperageId80": {
"message": "Virtual"
},
"powerAmperageId90": {
"message": "MSP"
},
"powerMahValue": {
"message": "$1 mAh"
},

View File

@ -197,10 +197,6 @@ TABS.power.initialize = function (callback) {
batteryMeterTypes.push('ESC Sensor');
}
if (haveFc) {
batteryMeterTypes.push('ESC Sensor');
}
var batteryMeterType_e = $('select.batterymetersource');
for (var i = 0; i < batteryMeterTypes.length; i++) {
@ -216,6 +212,10 @@ TABS.power.initialize = function (callback) {
if (haveFc) {
currentMeterTypes.push('Virtual');
currentMeterTypes.push('ESC Sensor');
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
currentMeterTypes.push('MSP Sensor/OSD Slave');
}
}
var currentMeterType_e = $('select.currentmetersource');