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

Incorrect condition checking in HID.h #11

Closed joseangeljimenez closed 6 years ago

joseangeljimenez commented 6 years ago

I found an incorrect checking of the -D macros which prevents the compilation of a project with USD enabled. The compilation should stop with #error only if none of the macros are defined. The condition, as it was written previously, prevents compiling a project with USB enabled.