forked from buttplugio/buttplug
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support Satisfyer devices with more than 2 vibes
We've been sending packets of 8 bytes to all Satisfyer devices so far, but it turns out that we should be sending 4 bytes per feature. Right now the features are vibrators, oscilators or single direction rotators (all map to VibrateCmd). This change uses the feature count to initialise the length of the data packet array, and dynamically loads the values into the array before sending.
- Loading branch information
1 parent
3f3e1fe
commit 90a898f
Showing
1 changed file
with
14 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters