From 5f81a27f89f35246f9b0ad5b796dcce58336206a Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Thu, 30 May 2024 10:12:28 -0400 Subject: [PATCH] [ADAPTER] Fix PS2 RE4 rumble, ignore value over 1 for HF motor --- main/adapter/wired/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/adapter/wired/ps.c b/main/adapter/wired/ps.c index 8f4d3891..0e27dfef 100644 --- a/main/adapter/wired/ps.c +++ b/main/adapter/wired/ps.c @@ -388,7 +388,7 @@ void ps_fb_to_generic(int32_t dev_mode, struct raw_fb *raw_fb_data, struct gener case FB_TYPE_RUMBLE: fb_data->state = (raw_fb_data->data[0] || raw_fb_data->data[1] ? 1 : 0); fb_data->lf_pwr = raw_fb_data->data[1]; - fb_data->hf_pwr = (raw_fb_data->data[0]) ? 0xFF : 0x00; + fb_data->hf_pwr = (raw_fb_data->data[0] == 0x01) ? 0xFF : 0x00; break; case FB_TYPE_STATUS_LED: fb_data->led = raw_fb_data->data[0];