Add support for custom gyro alignment.

Prior to this, if custom alignment is set in the firmware the
configurator will not show the 'Custom' setting and will reset the
'Custom' setting to 'Default' when saved.
10.7.0-preview
Hydra 2019-08-16 11:25:17 +02:00
parent e513c279a4
commit 7cc63f1192
1 changed files with 4 additions and 0 deletions

View File

@ -322,6 +322,10 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
'CW 270° flip'
];
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
alignments.push('Custom');
}
var gyro_align_content_e = $('.tab-configuration .gyro_align_content');
var legacy_gyro_alignment_e = $('.tab-configuration .legacy_gyro_alignment');
var legacy_accel_alignment_e = $('.tab-configuration .legacy_accel_alignment');