From 437bc752474df0de5e1ce9b44f5be9b2955d9176 Mon Sep 17 00:00:00 2001 From: Alexandre Bourdiol Date: Fri, 24 Jan 2020 18:31:40 +0100 Subject: [PATCH] Servo: enlarge pin number range to [0..255] On some configurations, pin number is larger than 63: Example: NUCLEO_F429ZI PA0 = 103 --- libraries/Servo/src/Servo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Servo/src/Servo.h b/libraries/Servo/src/Servo.h index 5e52aba3da..1551b609fa 100644 --- a/libraries/Servo/src/Servo.h +++ b/libraries/Servo/src/Servo.h @@ -90,8 +90,8 @@ #if !defined(ARDUINO_ARCH_STM32F4) typedef struct { - uint8_t nbr : 6 ; // a pin number from 0 to 63 - uint8_t isActive : 1 ; // true if this channel is enabled, pin not pulsed if false + uint8_t nbr; // a pin number from 0 to 255 + uint8_t isActive; // true if this channel is enabled, pin not pulsed if false } ServoPin_t ; typedef struct {