Skip to content

Commit 3a38314

Browse files
committed
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

Diff for: cores/arduino/pins_arduino.h

+1-1
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)