Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
chore: Fix vibrator count
Browse files Browse the repository at this point in the history
So stroking devices work again. Oops.
  • Loading branch information
qdot committed Feb 13, 2021
1 parent 319de2d commit 31e5105
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ export default class App extends Vue {
}

private numVibrators(device: ButtplugClientDevice): number {
/*
if (device || !device.messageAttributes(ButtplugDeviceMessageType.VibrateCmd) || !device.messageAttributes(ButtplugDeviceMessageType.VibrateCmd).featureCount) {
return 0;
}*/
}
return device!.messageAttributes(ButtplugDeviceMessageType.VibrateCmd)!.featureCount!;
}
}

0 comments on commit 31e5105

Please sign in to comment.