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

@ -192,10 +192,6 @@ TABS.power.initialize = function (callback) {
'None',
'Onboard ADC',
];
if (haveFc) {
batteryMeterTypes.push('ESC Sensor');
}
if (haveFc) {
batteryMeterTypes.push('ESC Sensor');
@ -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');