answered also here:
Louis,
first thank you, I've seen the forum thread, great work.
This commit was due to the behaviour seen on older macosx (<=10.6.8 ).
We got the following facts:
macosx versions <= 10.6.8 sends a wLenght of 0x12
if we keep the == condition (==0x08) the CDC-Serial is not seen from macosx
changing the condition to >= 0x08 make it working
Note that this happens only with high-speed devices. If you attach a low-speed device macosx
requests a wLength of 0x08. This probably makes Leonardo unaffected.
I'm going to set the condition back to ==, but my question now is: there is a workaround to make it
working also on macos 10.6.8 and older?