From 860def3eef4e1079564088edff0962ba80fe22d9 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 28 Jun 2025 18:00:05 +0300 Subject: add T300RS with 488 GT3 attachment + It seems to require special handling that can't be dealth with in tmff2 --- tminit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tminit.c b/tminit.c index a4798a8..fcf30ef 100644 --- a/tminit.c +++ b/tminit.c @@ -68,7 +68,8 @@ static const struct tm_wheel_info tm_wheels_infos[] = { {0x00, 0x02, 0x0002, "Thrustmaster T500RS"}, {0x02, 0x00, 0x0005, "Thrustmaster T300RS (Missing Attachment)"}, {0x02, 0x03, 0x0005, "Thrustmaster T300RS (F1 attachment)"}, - {0x02, 0x04, 0x0005, "Thrustmaster T300 Ferrari Alcantara Edition"}, + {0x02, 0x04, 0x0005, "Thrustmaster T300RS Ferrari Alcantara Edition"}, + {0x02, 0x0a, 0x000b, "Thrustmaster T300RS Ferrari 488 GT3"}, {0x02, 0x06, 0x0005, "Thrustmaster T300RS"}, {0x02, 0x09, 0x0005, "Thrustmaster T300RS (Open Wheel Attachment)"}, {0x03, 0x06, 0x0006, "Thrustmaster T150RS"}, @@ -77,7 +78,8 @@ static const struct tm_wheel_info tm_wheels_infos[] = { //{0x04, 0x07, 0x0001, "Thrustmaster TMX"} }; -static const uint8_t tm_wheels_infos_length = 9; +static const uint8_t tm_wheels_infos_length = + sizeof(tm_wheels_infos) / sizeof(struct tm_wheel_info); /* The control packet to send to wheel */ -- cgit v1.3