Skip to content

Commit

Permalink
Merge pull request #98 from lichtl/dev
Browse files Browse the repository at this point in the history
hide PWM7/8 on non Octo
  • Loading branch information
lichtl authored Jul 15, 2020
2 parents 4ed2c93 + 42ac6e7 commit 1823d6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/data_output.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ CONTENT.data_output.initialize = function (callback) {
receiverLabelArray.push($('.label', this));
});

var octoCotperType = [9,10];
// generate motor bars
if (data['ver'] >= 123) {
if (data['ver'] >= 123 && octoCotperType.indexOf(data['CopterType']) !== -1) {
var motorNames = ['PWM 1', 'PWM 2', 'PWM 3', 'PWM 4', 'PWM 5', 'PWM 6', 'PWM 7', 'PWM 8'];
} else {
var motorNames = ['PWM 1', 'PWM 2', 'PWM 3', 'PWM 4', 'PWM 5', 'PWM 6'];
Expand Down

0 comments on commit 1823d6d

Please sign in to comment.