Skip to content

Commit

Permalink
tweak play on upload behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Kethen committed Aug 27, 2024
1 parent b86c7da commit 330fa37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driver_loops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,9 @@ static void *uinput_poll_loop(void *arg){
}
default:{
pthread_mutex_lock(&loop_context->device_mutex);
lg4ff_play_effect(&loop_context->ffb_device, e.code, e.value, loop_context->context.log_effects);
if(!loop_context->context.play_on_upload || e.value != 1){
lg4ff_play_effect(&loop_context->ffb_device, e.code, e.value, loop_context->context.log_effects);
}
pthread_mutex_unlock(&loop_context->device_mutex);
}
}
Expand Down

0 comments on commit 330fa37

Please sign in to comment.