From 7b4f26462c5053ac967b237c602000ad9ba54200 Mon Sep 17 00:00:00 2001 From: bleubidon Date: Sat, 25 Jun 2022 12:29:16 +0200 Subject: [PATCH] Fix min/max private variables overflow --- src/Servo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Servo.h b/src/Servo.h index 53ecb8e..01289f8 100644 --- a/src/Servo.h +++ b/src/Servo.h @@ -115,8 +115,8 @@ class Servo bool attached(); // return true if this servo is attached, otherwise false private: uint8_t servoIndex; // index into the channel data for this servo - int8_t min; // minimum is this value times 4 added to MIN_PULSE_WIDTH - int8_t max; // maximum is this value times 4 added to MAX_PULSE_WIDTH + int min; // minimum is this value times 4 added to MIN_PULSE_WIDTH + int max; // maximum is this value times 4 added to MAX_PULSE_WIDTH }; #endif