Skip to content

Commit

Permalink
make firmware check a warning
Browse files Browse the repository at this point in the history
+ Apparently this allows the T-GT II to work, as it shows up as a PS4
  T300 RS, just that it has a different firmware version.
  Eventually I should maybe look into the firmware response a bit closer
  and check if I can fish out wheel information or something along those
  lines to improve wheel detection.
  • Loading branch information
Kimplul committed Dec 18, 2024
1 parent d6ae229 commit 9814765
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/tmt300rs/hid-tmt300rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ int t300rs_close(void *data, int open_mode)

static int t300rs_check_firmware(struct t300rs_device_entry *t300rs)
{
int ret;
int ret = 0;
struct t300rs_fw_response *fw_response =
kzalloc(sizeof(struct t300rs_fw_response), GFP_KERNEL);

Expand Down Expand Up @@ -1337,15 +1337,12 @@ static int t300rs_check_firmware(struct t300rs_device_entry *t300rs)

/* educated guess */
if (fw_response->fw_version < 31 && ret >= 0) {
hid_err(t300rs->hdev,
"firmware version %i is too old, please update.\n",
hid_warn(t300rs->hdev,
"firmware version %i might be too old, consider updating\n",
fw_response->fw_version
);

hid_info(t300rs->hdev, "note: this has to be done through Windows.\n");

ret = -EINVAL;
goto out;
}

/* everything OK */
Expand Down

0 comments on commit 9814765

Please sign in to comment.