Skip to content

Commit

Permalink
fixup! feat(connect): add bluetoothProps to Device
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-sanderson committed Feb 17, 2025
1 parent bb65a0a commit ed8e7e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/connect/src/device/Device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class Device extends TypedEmitter<DeviceEvents> {
this.transportPath = descriptor.path;
this.transportSessionOwner = descriptor.sessionOwner;
this.transportDescriptorType = descriptor.type;
this.bluetoothProps = descriptor.uuid ? { uuid: descriptor.uuid } : undefined;
this.bluetoothProps = descriptor.id ? { id: descriptor.id } : undefined;

this.session = descriptor.session;
this.lastAcquiredHere = false;
Expand Down
2 changes: 1 addition & 1 deletion packages/connect/src/types/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ type BaseDevice = {
};

export type BluetoothDeviceProps = {
uuid: string;
id: string;
};

export type KnownDevice = BaseDevice & {
Expand Down
2 changes: 1 addition & 1 deletion packages/transport/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type Descriptor = Omit<DescriptorApiLevel, 'path'> & {
/** only reported by old bridge */
debug?: boolean;
/** only reported by transport-bluetooth */
uuid?: string;
id?: string;
};

export interface Logger {
Expand Down

0 comments on commit ed8e7e8

Please sign in to comment.