Commit d9a17651 authored by Michael Hübner's avatar Michael Hübner Committed by Jiri Kosina
Browse files

HID: thrustmaster: Add sparco wheel and fix array length



Add device id for the Sparco R383 Mod wheel.

Fix wheel info array length to match actual wheel count present in the array.

Signed-off-by: default avatarMichael Hübner <michaelh.95@t-online.de>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent e1fa0767
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -67,12 +67,13 @@ static const struct tm_wheel_info tm_wheels_infos[] = {
	{0x0200, 0x0005, "Thrustmaster T300RS (Missing Attachment)"},
	{0x0206, 0x0005, "Thrustmaster T300RS"},
	{0x0209, 0x0005, "Thrustmaster T300RS (Open Wheel Attachment)"},
	{0x020a, 0x0005, "Thrustmaster T300RS (Sparco R383 Mod)"},
	{0x0204, 0x0005, "Thrustmaster T300 Ferrari Alcantara Edition"},
	{0x0002, 0x0002, "Thrustmaster T500RS"}
	//{0x0407, 0x0001, "Thrustmaster TMX"}
};

static const uint8_t tm_wheels_infos_length = 4;
static const uint8_t tm_wheels_infos_length = 7;

/*
 * This structs contains (in little endian) the response data