mattairtech / ArduinoCore-samd

This is a fork from arduino/ArduinoCore-samd on GitHub. This will be used to maintain Arduino support for SAM D|L|C (M0+ and M4F) boards including the MattairTech Xeno Mini and the MT-D21E (see https://www.mattairtech.com/). It adds support for new devices like the D51, L21, C21, and D11. It also adds new clock sources, like a high speed crystal or internal oscillator.
104 stars 43 forks source link

Update USB implementation, fix 64 bytes bug #45

Open qbolsee opened 3 years ago

qbolsee commented 3 years ago

This is a bugfix for a specific issue when sending exactly 64 bytes to the USB CDC. It seems the bytes were stuck in a buffer which was only released when reaching 256 bytes. I can upload a test case that demonstrates this if needed.

Updating SAMD21_USBDevice.h to the version from the official Arduino Core fixed the issue.