From ee92e2d02a1f638c4d398ba8d812916f0b61f258 Mon Sep 17 00:00:00 2001 From: Levi Burner Date: Sun, 29 Oct 2017 15:19:34 -0400 Subject: [PATCH] Use one more bit to store pin number. Mega has pin number higher than 64. --- src/Servo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Servo.h b/src/Servo.h index 4890a14..c478146 100644 --- a/src/Servo.h +++ b/src/Servo.h @@ -88,7 +88,7 @@ #if !defined(ARDUINO_ARCH_STM32F4) typedef struct { - uint8_t nbr :6 ; // a pin number from 0 to 63 + uint8_t nbr :7 ; // a pin number from 0 to 127 uint8_t isActive :1 ; // true if this channel is enabled, pin not pulsed if false } ServoPin_t ;