aboutsummaryrefslogtreecommitdiff
path: root/tminit.c
diff options
context:
space:
mode:
Diffstat (limited to 'tminit.c')
-rw-r--r--tminit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tminit.c b/tminit.c
index 473017a..b8adecb 100644
--- a/tminit.c
+++ b/tminit.c
@@ -72,11 +72,12 @@ static const struct tm_wheel_info tm_wheels_infos[] = {
{0x02, 0x06, 0x0005, "Thrustmaster T300RS"},
{0x02, 0x09, 0x0005, "Thrustmaster T300RS (Open Wheel Attachment)"},
{0x03, 0x06, 0x0006, "Thrustmaster T150RS"},
- {0x00, 0x09, 0x000b, "Thrustmaster T128"}
+ {0x00, 0x09, 0x000b, "Thrustmaster T128"},
+ {0x07, 0x0a, 0x000a, "Thrustmaster TS-XW"}
//{0x04, 0x07, 0x0001, "Thrustmaster TMX"}
};
-static const uint8_t tm_wheels_infos_length = 8;
+static const uint8_t tm_wheels_infos_length = 9;
/* The control packet to send to wheel */
@@ -214,7 +215,7 @@ static void thrustmaster_model_handler(struct urb *urb)
tm_wheel->response->type);
return;
}
-
+
for (i = 0; i < tm_wheels_infos_length && !twi; i++)
if (tm_wheels_infos[i].model == model)
twi = tm_wheels_infos + i;