Skip to content

Commit

Permalink
Force feedback not working on G25/G27 wheels #536
Browse files Browse the repository at this point in the history
  • Loading branch information
matlo committed May 12, 2018
1 parent 658bebd commit 5a6faa6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/haptic/sink/haptic_sink_lg.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ void haptic_sink_lg_update(struct haptic_sink_state * state) {

for (i = 0; i < state->fifo.size; ++i) {
e_slot slot = state->fifo.items[i];
if (state->slots[slot].updated && !state->slots[slot].data.playing) {
mask |= (1 << slot);
if (slot == slot_constant || slot == slot_spring || slot == slot_damper) {
if (state->slots[slot].updated && !state->slots[slot].data.playing) {
mask |= (1 << slot);
}
}
}

Expand Down

0 comments on commit 5a6faa6

Please sign in to comment.