Skip to content

Commit d053a81

Browse files
Incorrect condition checking in HID.h
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.
1 parent 77bf783 commit d053a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/HID/HID.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <Arduino.h>
2424
#include "USB/PluggableUSB.h"
2525

26-
#if !defined(CDC_HID) || !defined(HID_ONLY) || !defined(WITH_CDC)
26+
#if !defined(CDC_HID) && !defined(HID_ONLY) && !defined(WITH_CDC)
2727
#error Please select CDC_HID, HID_ONLY, or WITH_CDC in the Tools->USB menu.
2828
#endif
2929

0 commit comments

Comments
 (0)