aboutsummaryrefslogtreecommitdiff
path: root/src/tmt300rs
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-12-18 22:06:18 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-12-18 22:06:18 +0200
commit9814765860ed49e482481f30ee3fd73102348951 (patch)
tree33f39cd1c7fe6e1656c433a7d1c7d5c269b353d2 /src/tmt300rs
parentd6ae229bc8c84dcef300498a6c8649837e2df636 (diff)
downloadhid-tmff2-9814765860ed49e482481f30ee3fd73102348951.tar.gz
hid-tmff2-9814765860ed49e482481f30ee3fd73102348951.zip
make firmware check a warning
+ 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.
Diffstat (limited to 'src/tmt300rs')
-rw-r--r--src/tmt300rs/hid-tmt300rs.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tmt300rs/hid-tmt300rs.c b/src/tmt300rs/hid-tmt300rs.c
index 2f3e0e8..f83e3af 100644
--- a/src/tmt300rs/hid-tmt300rs.c
+++ b/src/tmt300rs/hid-tmt300rs.c
@@ -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);
@@ -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 */