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
parent
e513c279a4
commit
7cc63f1192
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue