Skip to content

Commit 7b4f264

Browse files
committed
Fix min/max private variables overflow
1 parent e57bea5 commit 7b4f264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Servo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ class Servo
115115
bool attached(); // return true if this servo is attached, otherwise false
116116
private:
117117
uint8_t servoIndex; // index into the channel data for this servo
118-
int8_t min; // minimum is this value times 4 added to MIN_PULSE_WIDTH
119-
int8_t max; // maximum is this value times 4 added to MAX_PULSE_WIDTH
118+
int min; // minimum is this value times 4 added to MIN_PULSE_WIDTH
119+
int max; // maximum is this value times 4 added to MAX_PULSE_WIDTH
120120
};
121121

122122
#endif

0 commit comments

Comments
 (0)