Skip to content

Commit 300c56f

Browse files
committed
test for LED_BUILTIN existence
1 parent 0d7e6f6 commit 300c56f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

variants/generic/common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ static const uint8_t A0 = PIN_A0;
7171
#define SERIAL_PORT_HARDWARE Serial
7272
#define SERIAL_PORT_HARDWARE_OPEN Serial1
7373

74+
#ifdef LED_BUILTIN
7475
#ifdef __cplusplus
7576
extern "C"
7677
#endif
7778
const int BUILTIN_LED __attribute__((deprecated, weak)) = LED_BUILTIN;
79+
#endif
7880

7981
#endif /* GENERIC_COMMON_H */

0 commit comments

Comments
 (0)