Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
CF/BF - Support MSP/OSD Slave current sensor.
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra committed Apr 24, 2017
1 parent 93517fe commit 756e9c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2092,6 +2092,9 @@
"powerAmperageId80": {
"message": "Virtual"
},
"powerAmperageId90": {
"message": "MSP"
},
"powerMahValue": {
"message": "$1 mAh"
},
Expand Down
4 changes: 4 additions & 0 deletions tabs/power.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,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');
Expand Down

0 comments on commit 756e9c2

Please sign in to comment.