Skip to content

Commit

Permalink
fix: Correct the vibration mode on the Svakom Sam 2 Pro
Browse files Browse the repository at this point in the history
Fixes #683
  • Loading branch information
blackspherefollower committed Dec 16, 2024
1 parent 850143b commit 343312a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buttplug/src/server/device/protocol/svakom_sam2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl ProtocolHandler for SvakomSam2 {
0x03,
0x00,
0x00,
if scalar == 0 { 0x00 } else { 0x01 },
if scalar == 0 { 0x00 } else { 0x05 },
scalar as u8,
0x00,
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ device_commands:
commands:
- !Write
endpoint: tx
data: [0x55, 0x03, 0x00, 0x00, 0x01, 0x05, 0x00]
data: [0x55, 0x03, 0x00, 0x00, 0x05, 0x05, 0x00]
write_with_response: true
- !Messages
device_index: 0
Expand All @@ -31,7 +31,7 @@ device_commands:
commands:
- !Write
endpoint: tx
data: [0x55, 0x03, 0x00, 0x00, 0x01, 0x08, 0x00]
data: [0x55, 0x03, 0x00, 0x00, 0x05, 0x08, 0x00]
write_with_response: true
- !Write
endpoint: tx
Expand Down

0 comments on commit 343312a

Please sign in to comment.