Skip to content

Commit 7193ece

Browse files
ABOSTMfpistm
authored andcommitted
Servo: enlarge pin number range to [0..255]
On some configurations, pin number is larger than 63: Example: NUCLEO_F429ZI PA0 = 103
1 parent 0bd29f9 commit 7193ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Servo/src/Servo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@
9090
#if !defined(ARDUINO_ARCH_STM32F4)
9191

9292
typedef struct {
93-
uint8_t nbr : 6 ; // a pin number from 0 to 63
94-
uint8_t isActive : 1 ; // true if this channel is enabled, pin not pulsed if false
93+
uint8_t nbr; // a pin number from 0 to 255
94+
uint8_t isActive; // true if this channel is enabled, pin not pulsed if false
9595
} ServoPin_t ;
9696

9797
typedef struct {

0 commit comments

Comments
 (0)