Skip to content

Commit

Permalink
fix: duplicate models using same id (ct)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Feb 21, 2024
1 parent 48d795f commit f4acc90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/core/src/info.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export enum LoupedeckModelId {
LoupedeckCt = 'loupedeck-ct',
LoupedeckCtV1 = 'loupedeck-ct-v1',
LoupedeckLive = 'loupedeck-live',
LoupedeckLiveS = 'loupedeck-live-s',
RazerStreamController = 'razer-stream-controller',
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/models/ct-v1.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { LoupedeckModelId } from '..'
import { LoupedeckSerialConnection } from '../serial'
import { LoupedeckDeviceBase, LoupedeckDeviceOptions, ModelSpec } from './base'
import { LoupedeckCtV2ModelSpec } from './ct-v2'

const LoupedeckCtV1ModelSpec: ModelSpec = {
...LoupedeckCtV2ModelSpec,
splitTopDisplays: true,
modelId: LoupedeckModelId.LoupedeckCtV1,
}

export class LoupedeckCtDeviceV1 extends LoupedeckDeviceBase {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/models/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface DeviceModelSpec {
/** List of all the known models, and the classes to use them */
export const DEVICE_MODELS: DeviceModelSpec[] = [
{
id: LoupedeckModelId.LoupedeckCt,
id: LoupedeckModelId.LoupedeckCtV1,
vendorId: VendorIdLoupedeck,
productId: 0x0003,
class: LoupedeckCtDeviceV1,
Expand Down

0 comments on commit f4acc90

Please sign in to comment.