Skip to content

Commit d519144

Browse files
facchinmcmaglie
authored andcommitted
enforce single use of HID submodule
1 parent c827170 commit d519144

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Keyboard.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2020
*/
2121

22-
#if 1
22+
#if defined(_USING_HID)
23+
24+
#error "Can only attach one submodule to HID module"
25+
26+
#else
27+
28+
#define _USING_HID
2329

2430
#include "HID.h"
2531

0 commit comments

Comments
 (0)