scarburato / hid-tminit

Linux driver to properly initialize some Thrustmaster Wheels
GNU General Public License v2.0
30 stars 9 forks source link

Initialize with base info rather than base + attachment #9

Closed Kimplul closed 2 years ago

Kimplul commented 2 years ago

Hi, an issue was recently opened over at https://github.com/Kimplul/hid-tmff2/issues/28 where it was noted that if the T300 base has a different attachment than the default, hid-tminit wouldn't initialize the wheel. After looking at what we initially thought to be just model IDs, I think the upper byte (in big endian, i.e. 0x0206 for example) is actually the base ID, and the lower byte is the attachment ID. This commit changes the init to work only based on the base of the wheel, but leaves the attachment IDs as I'm not sure if different attachments need special handling.

Seems to work with my wheel with the default attachment and @ReazerDev's wheel with the F1 attachment. Would probably be good to check if the T150 etc still work, although I'm pretty sure they do.

scarburato commented 2 years ago

Seems a reasonable assumption