From 5a6faa6f03e8baffefcf515d2dad27141c0f5fa0 Mon Sep 17 00:00:00 2001 From: matlo Date: Sat, 12 May 2018 22:13:04 +0200 Subject: [PATCH] Force feedback not working on G25/G27 wheels #536 --- core/haptic/sink/haptic_sink_lg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/haptic/sink/haptic_sink_lg.c b/core/haptic/sink/haptic_sink_lg.c index 204c39d6..5de42174 100644 --- a/core/haptic/sink/haptic_sink_lg.c +++ b/core/haptic/sink/haptic_sink_lg.c @@ -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); + } } }