Skip to content

Commit

Permalink
chore: Rename configureEncoderMapping() to `configureEncoderMapping…
Browse files Browse the repository at this point in the history
…s()` in device configs
  • Loading branch information
bjoluc committed Apr 24, 2024
1 parent 8a826bc commit 8aba986
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/device-configs/behringer_xtouch-one.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const deviceConfig: DeviceConfig = {
};
},

configureEncoderMapping() {
configureEncoderMappings() {
return [
// Pan, Monitor, Gain, LC, HC (F1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/device-configs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export interface DeviceConfig {
*
* The default config is defined in {@link file://./../mapping/encoders/index.ts}
*/
configureEncoderMapping?(
configureEncoderMappings?(
defaultEncoderMappings: EncoderMappingConfig[],
page: MR_FactoryMappingPage,
): EncoderMappingConfig[];
Expand Down
2 changes: 1 addition & 1 deletion src/device-configs/ssl_uf1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const deviceConfig: DeviceConfig = {
};
},

configureEncoderMapping(defaultEncoderMappings, page) {
configureEncoderMappings(defaultEncoderMappings, page) {
const instrumentEncoderMapping = defaultEncoderMappings.pop()!;

// Replace the instrument encoder assignment with quick controls
Expand Down
4 changes: 2 additions & 2 deletions src/mapping/encoders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export function bindEncoders(
},
];

if (deviceConfig.configureEncoderMapping) {
encoderMappingConfigs = deviceConfig.configureEncoderMapping(encoderMappingConfigs, page);
if (deviceConfig.configureEncoderMappings) {
encoderMappingConfigs = deviceConfig.configureEncoderMappings(encoderMappingConfigs, page);
}

encoderMapper.applyEncoderMappingConfigs(encoderMappingConfigs);
Expand Down

0 comments on commit 8aba986

Please sign in to comment.