Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3a38314

Browse files
committedAug 23, 2017
warning: Fix warning: comparison between 'enum<anonymous>' and 'enum<anonymous>' [-Wenum-compare]
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent d518b24 commit 3a38314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cores/arduino/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434

3535
#define NOT_AN_INTERRUPT NC // -1
3636
#define DEND PEND
37-
#define NUM_DIGITAL_PINS DEND
37+
#define NUM_DIGITAL_PINS ((uint32_t)DEND)
3838
#define NUM_ANALOG_INPUTS (AEND-A0)
3939

4040
// Convert a digital pin number Dxx to a PinName PX_n

0 commit comments

Comments
 (0)
Please sign in to comment.