Skip to content

Commit

Permalink
Improve compatibility with Fanatec wheels in G25 mode #586
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Laurendeau committed Aug 9, 2018
1 parent 6c77b72 commit c78feaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/haptic/common/ff_lg.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,9 @@ void ff_lg_convert_slot(const s_haptic_core_data * from, int slot, s_ff_lg_repor

switch (from->type) {
case E_DATA_TYPE_CONSTANT:
command->force_type = FF_LG_FTYPE_CONSTANT;
command->force_type = FF_LG_FTYPE_VARIABLE;
command->parameters[0] = ff_lg_s16_to_u8(from->constant.level);
command->parameters[1] = 0x80;
break;
case E_DATA_TYPE_SPRING:
{
Expand Down

0 comments on commit c78feaa

Please sign in to comment.