From 3c604578073aa04c86119bbf17eb4e2b515ed592 Mon Sep 17 00:00:00 2001 From: Yassine Imounachen Date: Mon, 29 Apr 2024 03:01:57 +0100 Subject: add support for TS-XW initialization --- tminit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tminit.c') 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; -- cgit v1.3 From 5312a276516f5df108977693b264f368e2e93cc7 Mon Sep 17 00:00:00 2001 From: yassineimounachen <160498229+yassineimounachen@users.noreply.github.com> Date: Tue, 17 Sep 2024 19:05:38 +0100 Subject: Delete useless tab indent --- tminit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tminit.c') diff --git a/tminit.c b/tminit.c index b8adecb..dbda9cf 100644 --- a/tminit.c +++ b/tminit.c @@ -215,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; -- cgit v1.3