From 42ac6e7d77e9bb6a1b24da06900fad6d3906f078 Mon Sep 17 00:00:00 2001 From: Carsten Wache Date: Wed, 15 Jul 2020 14:47:20 +0200 Subject: [PATCH] hide PWM7/8 on non Octo --- content/data_output.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/data_output.js b/content/data_output.js index a586d53..5eda002 100755 --- a/content/data_output.js +++ b/content/data_output.js @@ -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'];