From c1ab10c0c80073725d704d25f1eb8d954c2ca4a4 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Thu, 31 Jul 2014 00:12:40 +0100 Subject: [PATCH] Fix auxiliary tab when using parallel PWM. --- changelog.html | 6 +++++- tabs/auxiliary_configuration.js | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) mode change 100644 => 100755 changelog.html mode change 100644 => 100755 tabs/auxiliary_configuration.js diff --git a/changelog.html b/changelog.html old mode 100644 new mode 100755 index cb8ba828fa..cf4b20df9e --- a/changelog.html +++ b/changelog.html @@ -1,4 +1,8 @@ -07.17.2014 - 0.47 +07.06.2014 - cleanflight +

+ - Fix auxiliary configuration tab when using parallel pwm.
+

+

07.17.2014 - 0.47

- Bugfixes related to Chrome 36+ release
- Various optimizations and behavior improvements
diff --git a/tabs/auxiliary_configuration.js b/tabs/auxiliary_configuration.js old mode 100644 new mode 100755 index 5f2c37624e..fa73fcedd0 --- a/tabs/auxiliary_configuration.js +++ b/tabs/auxiliary_configuration.js @@ -48,7 +48,7 @@ tabs.auxiliary_configuration.initialize = function(callback) { var bitIndex = 0; var chunks = 1; - if (bit_check(CONFIG.capability, 5)) { + if (bit_check(CONFIG.capability, 5) && (RC.active_channels - 4) > 4) { chunks = 2; } var channelsPerChunk = 4; @@ -76,7 +76,7 @@ tabs.auxiliary_configuration.initialize = function(callback) { var boxCountFor4AuxChannels = 3 * 4; var boxCountPerLine = boxCountFor4AuxChannels; - if (bit_check(CONFIG.capability, 5)) { + if (bit_check(CONFIG.capability, 5) && (RC.active_channels - 4) > 4) { boxCountPerLine = boxCountFor4AuxChannels * 2; } @@ -107,7 +107,7 @@ tabs.auxiliary_configuration.initialize = function(callback) { AUX_val_buffer_out.push(lowByte(AUX_CONFIG_values[i] & 0xFFF)); AUX_val_buffer_out.push(highByte(AUX_CONFIG_values[i] & 0xFFF)); } - if (bit_check(CONFIG.capability, 5)) { + if (bit_check(CONFIG.capability, 5) && (RC.active_channels - 4) > 4) { for (var i = 0; i < AUX_CONFIG_values.length; i++) { AUX_val_buffer_out.push(lowByte((AUX_CONFIG_values[i] >> 16) & 0xFFF)); AUX_val_buffer_out.push(highByte((AUX_CONFIG_values[i] >> 16) & 0xFFF));