Skip to content

Commit 9726b18

Browse files
committed
chore: Fix wrong arguments for RotateCmd output vec creation
1 parent 36eecb5 commit 9726b18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/buttplug_server/src/message/v4/checked_output_vec_cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ impl TryFromDeviceAttributes<RotateCmdV1> for CheckedOutputVecCmdV4 {
393393
ButtplugDeviceError::DeviceNoActuatorError("RotateCmdV1".to_owned()),
394394
))?;
395395
cmds.push(CheckedOutputCmdV4::new(
396+
msg.id(),
396397
msg.device_index(),
397398
idx,
398-
0,
399399
feature.feature.id(),
400400
OutputCommand::RotateWithDirection(OutputRotateWithDirection::new(
401401
(cmd.speed() * ((*actuator.step_limit().end() - *actuator.step_limit().start()) as f64)

crates/buttplug_tests/tests/test_device_protocols.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ async fn test_device_protocols_embedded_v3(test_file: &str) {
484484
#[test_case("test_xuanhuan_protocol.yaml" ; "Xuanhuan Protocol")]
485485
#[tokio::test]
486486
async fn test_device_protocols_json_v3(test_file: &str) {
487-
tracing_subscriber::fmt::init();
487+
//tracing_subscriber::fmt::init();
488488
util::device_test::client::client_v3::run_json_test_case(&load_test_case(test_file).await).await;
489489
}
490490

0 commit comments

Comments
 (0)