Skip to content

Commit e10544c

Browse files
authored
Merge pull request MHeironimus#22 from MHeironimus/version-1.0
Address Arduino 1.6.6 issue
2 parents 59ea125 + 8b0f713 commit e10544c

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode

Joystick/Joystick.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
#error The Joystick library requires Arduino IDE 1.6.6 or greater. Please update your IDE.
2828
#endif
2929

30+
#if ARDUINO > 10606
3031
#if !defined(USBCON)
3132
#error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
3233
#endif
34+
#endif
3335

3436
#if !defined(_USING_HID)
3537

Joystick2/Joystick2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
#error The Joystick2 library requires Arduino IDE 1.6.6 or greater. Please update your IDE.
2828
#endif
2929

30+
#if ARDUINO > 10606
3031
#if !defined(USBCON)
3132
#error The Joystick2 library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
3233
#endif
34+
#endif
3335

3436
#if !defined(_USING_HID)
3537

Joystick3/Joystick3.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
#error The Joystick3 library requires Arduino IDE 1.6.6 or greater. Please update your IDE.
2828
#endif
2929

30+
#if ARDUINO > 10606
3031
#if !defined(USBCON)
3132
#error The Joystick3 library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
3233
#endif
34+
#endif
3335

3436
#if !defined(_USING_HID)
3537

0 commit comments

Comments
 (0)