Skip to content

Commit

Permalink
fixed effect reset/unloading
Browse files Browse the repository at this point in the history
  • Loading branch information
gotzl committed Oct 4, 2024
1 parent 55e3609 commit 9e15a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hid-ftec.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,8 @@ static int ftec_client_ll_raw_request(struct hid_device *hdev,
if (drv_data->client.effects[i].id) {
(void)ff->playback(inputdev, drv_data->client.effects[i].id, 0);
ftec_client_report_state(drv_data->client.hdev, 0x2, 0x0, drv_data->client.effects[i].id);
memset(&drv_data->client.effects[i], 0, sizeof(struct ff_effect));
}
memset(&drv_data->client.effects[i], 0, sizeof(struct ff_effect));
}
drv_data->client.current_id = 0;
}
Expand Down

0 comments on commit 9e15a3c

Please sign in to comment.