Skip to content

Commit 3b5cf9d

Browse files
committed
Fix compiler warning in Firmata library
Fix stm32duino#44 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 70c2a85 commit 3b5cf9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/Firmata/Boards.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,7 @@ writePort(port, value, bitmask): Write an 8 bit port.
771771
#define TOTAL_PORTS MAX_NB_PORT
772772
#define VERSION_BLINK_PIN LED_BUILTIN
773773
// PIN_SERIALY_RX/TX defined in the variant.h
774-
#define IS_PIN_DIGITAL(p) ((p != PIN_SERIAL_RX) && (p != PIN_SERIAL_TX) &&\
775-
(p >= 0) && (p < TOTAL_PINS))
774+
#define IS_PIN_DIGITAL(p) ((p != PIN_SERIAL_RX) && (p != PIN_SERIAL_TX) && (p < TOTAL_PINS))
776775
#define IS_PIN_ANALOG(p) ((p) >= A0 && (p) < AEND)
777776
#define IS_PIN_PWM(p) digitalPinHasPWM(p)
778777
#define IS_PIN_SERVO(p) IS_PIN_DIGITAL(p)

0 commit comments

Comments
 (0)