Skip to content

Commit

Permalink
[Windows, non-Logitech wheels] Damper saturation is incorrect #405
Browse files Browse the repository at this point in the history
  • Loading branch information
matlo committed Oct 30, 2016
1 parent 68861be commit b3ee4f8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions core/haptic/ff_lg.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,16 +866,11 @@ uint16_t ff_lg_get_damper_clip(unsigned short pid, unsigned char c) {

uint16_t clip;
switch(pid) {
case USB_PRODUCT_ID_LOGITECH_FORMULA_FORCE:
case USB_PRODUCT_ID_LOGITECH_FORMULA_FORCE_GP:
case USB_PRODUCT_ID_LOGITECH_DRIVING_FORCE:
case USB_PRODUCT_ID_LOGITECH_MOMO_WHEEL:
case USB_PRODUCT_ID_LOGITECH_MOMO_WHEEL2:
// older than Driving Force Pro
clip = USHRT_MAX;
case USB_PRODUCT_ID_LOGITECH_DFP_WHEEL:
clip = c * USHRT_MAX / UCHAR_MAX;
break;
default:
clip = c * USHRT_MAX / UCHAR_MAX;
clip = USHRT_MAX;
break;
}
return clip;
Expand Down

0 comments on commit b3ee4f8

Please sign in to comment.