On Nov 23, Adrian McMenamin wrote:
> Why is my maths wrong? It reports as 6 different devices, one of which is a
> controller. The other five all have the function code 0x800.
Ohh.. I see what you mean then. Looking at the dump you sent over, it
looks like it basically does what a lot of the 3rd party keyboards and
such do, and only checks to see if the sub-device code is 0 or greater
(basically treating the sub-port as a don't-care). I had some troubles
in KOS with that where it would detect a keyboard for A0, A1, A2, ... .
What we ended up having to do was only poll the top-level x0 port for
attached devices, and it'll return a bitmask showing what's really
connected. Works much better :).
Or it could really have 5 more sub-devices, dunno... Unfortunately I
don't have one to try it myself.
|