From b3ee4f875f6f340ed12547c8a447cf663c325de7 Mon Sep 17 00:00:00 2001 From: matlo Date: Sun, 30 Oct 2016 17:56:16 +0100 Subject: [PATCH] [Windows, non-Logitech wheels] Damper saturation is incorrect #405 --- core/haptic/ff_lg.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/core/haptic/ff_lg.c b/core/haptic/ff_lg.c index 440a4111..6f4613f9 100644 --- a/core/haptic/ff_lg.c +++ b/core/haptic/ff_lg.c @@ -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;