Skip to content

Commit

Permalink
[ADAPTER] Fix PS2 RE4 rumble, ignore value over 1 for HF motor
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed May 30, 2024
1 parent e7ba6d6 commit 5f81a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/adapter/wired/ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 5f81a27

Please sign in to comment.